Hi, On my project of weather I use Node-Red on Raspberry pi, I have a dashboard with many informations come from sensors, bme280, dht 22, and 18B20 temps sensors. In the same time I take informations from Darksy for forecast, sunrise, sunset, wind direction and forcast on 6 days.
I start to progam them, and I learn some basic thing for programmation in Jscript. But now I hit the wall for extract the data, and use them.
Darksy provide the information of preciprobability, and preciintensity. this data is in a "array" I read many post here, and elseware including w3schools.com (https://www.w3schools.com/js/js_arrays.asp). I try many thing and the extraction are not working, for extract this data and put them in chart for the next 60 minutes.
I joint picture of what I would it look, but for now it's not working.
first : a part of data come from darksky
second : node export and differents test I made for try to use the data "array" for show you, I tried some thing. ( to much caracter for the post, I exede the limit and I delete it, if you want see what I try, tell me and I will post them )
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=--=
{"latitude":45.50999832,"longitude":-73.55000305,"timezone":"America/Toronto","currently":{"time":1533423417,"summary":"Partly Cloudy","icon":"partly-cloudy-day","nearestStormDistance":0,"precipIntensity":0.0483,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain","temperature":26.56,"apparentTemperature":27.76,"dewPoint":19.12,"humidity":0.64,"pressure":1017.24,"windSpeed":0.97,"windGust":3.03,"windBearing":216,"cloudCover":0.44,"uvIndex":0,"visibility":16.09,"ozone":315.21},"minutely":{"summary":"Partly cloudy for the hour.","icon":"partly-cloudy-day","data":[{"time":1533423360,"precipIntensity":0,"precipProbability":0},{"time":1533423420,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423480,"precipIntensity":0,"precipProbability":0},{"time":1533423540,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.02,"precipType":"rain"},{"time":1533423600,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423660,"precipIntensity":0,"precipProbability":0},{"time":1533423720,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423780,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423840,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423900,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533423960,"precipIntensity":0,"precipProbability":0},{"time":1533424020,"precipIntensity":0,"precipProbability":0},{"time":1533424080,"precipIntensity":0.0508,"precipIntensityError":0,"precipProbability":0.01,"precipType":"rain"},{"time":1533424140,"precipIntensity":0,"precipProbability":0},{"time":1533424200,"precipIntensity":0,"precipProbability":0},{"time":1533424260,"precipIntensity":0,"precipProbability":0},{"time":1533424320,"precipIntensity":0,"precipProbability":0},{"time":1533424380,"precipIntensity":0,"precipProbability":0},{"time":1533424440,"precipIntensity":0,"precipProbability":0},{"time":1533424500,"precipIntensity":0,"precipProbability":0},{"time":1533424560,"precipIntensity":0,"precipProbability":0},{"time":1533424620,"precipIntensity":0,"precipProbability":0},{"time":1533424680,"precipIntensity":0,"precipProbability":0},{"time":1533424740,"precipIntensity":0,"precipProbability":0},{"time":1533424800,"precipIntensity":0,"precipProbability":0},{"time":1533424860,"precipIntensity":0,"precipProbability":0},{"time":1533424920,"precipIntensity":0,"precipProbability":0},{"time":1533424980,"precipIntensity":0,"precipProbability":0},{"time":1533425040,"precipIntensity":0,"precipProbability":0},{"time":1533425100,"precipIntensity":0,"precipProbability":0},{"time":1533425160,"precipIntensity":0,"precipProbability":0},{"time":1533425220,"precipIntensity":0,"precipProbability":0},{"time":1533425280,"precipIntensity":0,"precipProbability":0},{"time":1533425340,"precipIntensity":0,"precipProbability":0},{"time":1533425400,"precipIntensity":0,"precipProbability":0},{"time":1533425460,"precipIntensity":0,"precipProbability":0},{"time":1533425520,"precipIntensity":0,"precipProbability":0},{"time":1533425580,"precipIntensity":0,"precipProbability":0},{"time":1533425640,"precipIntensity":0,"precipProbability":0},{"time":1533425700,"precipIntensity":0,"precipProbability":0},{"time":1533425760,"precipIntensity":0,"precipProbability":0},{"time":1533425820,"precipIntensity":0,"precipProbability":0},{"time":1533425880,"precipIntensity":0,"precipProbability":0},{"time":1533425940,"precipIntensity":0,"precipProbability":0},{"time":1533426000,"precipIntensity":0,"precipProbability":0},{"time":1533426060,"precipIntensity":0,"precipProbability":0},{"time":1533426120,"precipIntensity":0,"precipProbability":0},{"time":1533426180,"precipIntensity":0,"precipProbability":0},{"time":1533426240,"precipIntensity":0,"precipProbability":0},{"time":1533426300,"precipIntensity":0,"precipProbability":0},{"time":1533426360,"precipIntensity":0,"precipProbability":0},{"time":1533426420,"precipIntensity":0,"precipProbability":0},{"time":1533426480,"precipIntensity":0,"precipProbability":0},{"time":1533426540,"precipIntensity":0,"precipProbability":0},{"time":1533426600,"precipIntensity":0,"precipProbability":0},{"time":1533426660,"precipIntensity":0,"precipProbability":0},{"time":1533426720,"precipIntensity":0,"precipProbability":0},{"time":1533426780,"precipIntensity":0,"precipProbability":0},{"time":1533426840,"precipIntensity":0,"precipProbability":0},{"time":1533426900,"precipIntensity":0,"precipProbability":0},{"time":1533426960,"precipIntensity":0,"precipProbability":0}]},"hourly":{"summary":"Partly cloudy later this evening.","icon":"partly-cloudy-day","data":[{"time":1533420000,"summary":"Partly Cloudy","icon":"partly-cloudy-day","precipIntensity":0.1626,"precipProbability":0.11,"precipType":"rain","temperature":26.41,"apparentTemperature":27.51,"dewPoint":18.72,"humidity":0.63,"pressure":1017.15,"windSpeed":1.04,"windGust":3.22,"windBearing":216,"cloudCover":0.37,"uvIndex":1,"visibility":16.09,"ozone":313.58},{"time":1533423600,"summary":"Partly Cloudy","icon":"partly-cloudy-day","precip....... (and more)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
If you see my name, is true, I'm not a programmer but I try to learn. I create this post, because I realy need help for continue this part of my project.
if some one want give to me a clue, a direction, or something, I will appreciate and give a following, here.