I would like to store all the parameters (i.e air_temperature, wind_speed, ) for the next 12 hours in variables for use in other flows. However, I am struggling to get it to work (I am not very experienced with programming unfortunately). Do you have any ideas how I can make it work?
How would you store the data in variables for instance? Would you make one air_temperature variable in better logic for each hour, or is it possible to store all 12 hours in an array?
Also, when I try to run I get a flow card error in the second step saying value not found. Can you see what I am doing wrong?
There isn’t any array possibility in better logic or Homey variables, so you have to use separate variables. I think in Homey script there are possibility for arrays if you want to dive into that.
In http://jsonpath.com/ you can evaluate the JSONpath syntax by copying your source to the page etc.
I see! Thank you so much.
The link was also very useful to check out the syntax
I still get an error message when trying to test the flow however, but I am guessing that the card needs some sort of input which should be given from the other card. So when I try to test it I have to give it the input ({“a”:1,“b”:“some text”})? What should I put in here in order to test the card?
Think I will have to look into Homey Script eventually, but as I just got my homey I think I will start with trying to get a better understanding of the flows first
I would like to add a condition to my sprinkler that if the predicted amount of rain from the national weather service is greater than 0, the sprinkler will not start.
I have the url for the query to the weather service for the next 5 days: