Forcing a date change
Posted: Mon Aug 22, 2011 3:09 pm
How to construct the url to force a time change through wifi directly, instead of Client?
Community discussion about Reef Angel Controllers and reefing related subjects
https://forum.reefangel.com/
Here's how to update date/time without using the client:rimai wrote:How to construct the url to force a time change through wifi directly, instead of Client?
Code: Select all
http://CONTROLLER_IP:2000/dHHMM,MMDD,YY
Code: Select all
http://CONTROLLER_IP:2000/d0930,0808,11
Code: Select all
Success - <D>OK</D>
Error - <D>ERR</D>
Code: Select all
now();
RTC.set(now());
Ok, thanks. I can add this in no problem. I've got a handful of changes in my dev branch that aren't reflected on github yet.rimai wrote:The library is missing some code after line 536 on ReefAngel_Wifi.cpp
It needs this:This is to save the values into the RTC chip. Otherwise the data goes right back to where it was on the next RTC sync or when rebooted.Code: Select all
now(); RTC.set(now());
Let me know if you need a pull request or this is sufficient.