Click here to Skip to main content
15,906,816 members

Comments by DarthGaba (Top 2 by date)

DarthGaba 15-Nov-23 15:26pm View    
@Maciej Los thank you for the fix with description. The json updates and we don't have any gusts today.

Do you have any advice regarding the time? The json spits out seconds (1700051352) and the time zone (-18000). I've tried using datetime.time() and defining "sunrise" and "sunset" in the __init__ as "%Y-%m-%dT%H:%M:%S.%f%z", but it didn't work.
DarthGaba 15-Nov-23 11:47am View    
I went back in and noticed that. When I was first writing the script yesterday there was a gust, but the data updates (thus no gust now). Can I use try/except to make gust "0" when no data is available?

So how do I make the allowance for the description?