Commit Graph

6 Commits

Author SHA1 Message Date
giedriuslt
35b657e098 Use ISO time everywhere (#1181) 2024-04-15 17:00:24 +02:00
Imre Lengyel
87868f2559 Get sunrise/sunset (#1030)
* Get the next sunset or sunrise values as TimerSeconds to allow setting a light's initial sate.

* Fix BL602 & W600 builds, and add some self test asserts for get sunrise/sunset

* Clock based self tests fail if they are not run in Europe time zone.

Update all usages of localtime to be gmtime. On windows local time is has the timezone applied on top of the sourceTime parameter, OpenBK app manages its own timezone and applies it to g_ntpTime appropriately, so gmtime will avoid the additional timezone application on windows machines.

* Simplify sample autoexec to avoid functionality that has not been implemented yet.

* Update docs

* Small fix in autoexe file

No brackets allowed, multiplications before addition appears to work
2024-01-20 13:50:40 +01:00
openshwprojects
41794c8ccc SELF TEST/UNIT TEST system - initial version - windows only 2022-11-15 15:41:14 +01:00
openshwprojects
63e57996ae add 'u' stub to my vsprintf (not used anywhere right now), add LED api 2022-11-03 17:45:17 +01:00
openshwprojects
4f53d14e60 enable my script changes and enable deduper 2022-11-02 15:36:34 +01:00
openshwprojects
0b53668490 add a win main for testing only scripts and pritnf on WINDOWS 2022-11-02 14:28:18 +01:00