I am trying to scrape data from the weather website. The code runs every 5 hours. The returning value will be assigned to an array. After the array element exceed 10 elements, the first element will be removed for example:
var Temp=[1,2,3,4,5,6,7,8,9,10]
after the update
var Temp=[2,3,4,5,6,7,8,9,10,11]
assume those numbers in the array are the temperature value.
var Temp = [console.log(await client.Weather({ symbol: 'Temp' }))]
Sorry I have very limited knowledge in this area. I have been searching to find a solution but I didn't find guide help me in that.