I have a situation where several esp's are on a network that has no Internet access. It eventually will, but for the foreseeable future there is no connection. Meanwhile, after a power outage, I set all of their local time and dates manually using Datetime[,YYYY-MM-DD[,hh:mm:ss]] which worked fine. Or so it seemed, till things continued to happen at random times.
Trouble is that the internal %sunrise% & %sunset% system variables don't seem to recalculate, after a manual Datetime reset.
Is there a way to have the system variables recalculate on command?
Thanks,
Brian H.
system variables recalculate on command?
Moderators: grovkillen, Stuntteam, TD-er
Re: system variables recalculate on command?
Or you could add a GPS unit to one of the ESPs.
Re: system variables recalculate on command?
I'd say this is a bug. BTW, I found that tools->adv->localization settings have a similar problem too.Trouble is that the internal %sunrise% & %sunset% system variables don't seem to recalculate, after a manual Datetime reset.
Edit: I briefly looked at the source code. My best guess: Seems to me that time_zone.applyTimeZone() should be called after the user manually enters the time or changes localization settings. I expect that would update the %sunrise% & %sunset% system vars.
A workaround is to set the Datetime, then issue the reboot command. The %sunrise% & %sunset% system vars will now report the correct values.Is there a way to have the system variables recalculate on command?
- Thomas
Who is online
Users browsing this forum: Google [Bot] and 97 guests