synced time when on wifi

This commit is contained in:
Klemek
2021-09-20 22:25:34 +02:00
parent bed398b85e
commit b08a5db57f
5 changed files with 67 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef WTA_H
#define WTA_H
#include <Watchy.h>
#define WTA_URL "http://worldtimeapi.org/api/timezone/"
#define WTA_TIMEZONE "Etc/UTC"
#define WTA_UPDATE_INTERVAL 60 //minutes
class WatchySynced : public Watchy
{
public:
void readWorldTime();
};
#endif