0
Waiting for user's reply

Yahoo Weather Module - Need to extract data

j4zz J4zzee 4 weeks ago in iRidium Script • updated 4 weeks ago 2

Hi everyone -


I'm currently working on a project to close the shutters at a certain time. I can set that time manually and the function works. Now, I would like to close the shutters at the sunset time.


I am using the Yahoo Weather Module, and I would like to know how to extract this sunset time to use it in my script.


Thank you for your support! :)


Waiting for user's reply

Hello

You can get sunset time with this path json.results.channel ["astronomy"]["sunset"]

Thanks for the quick feedback. Unfortunately I'm not an expert so would it be possible to write few rows to execute this:


if system time is greater than sunset time, then close the shutters.


Thank you so much for your support!