I’ve tried all the limited ways that my little mind could figure out (not being a developer does not help) and have come to a complete blank. Hoping that someone on this community can help me with this.
I’m calling on to darksky weather api. In particular their hourly api for weather conditions for precipProbability. The api provides something like the forecast for the next 24 hours. What i would like to do is evaluate $response.hourly.data.precipProbability[$index] and if the value should be more than 0.2 (20%), is to capture the first occorunce that the condition is met and store either the $index value or the corresponding $response.hourly.data.time[$index]
That way i can then assume that there is an X% chance of rain at hh:mm and use that information on something like Echo Speaks when i ask “will it rain?”.
The next part, which is a smaller issue is…how do i convert UNIX time to a format that WC understands?
Thanks in advance!!


