watchy lib 1.3 fixes

This commit is contained in:
Klemek
2022-04-09 18:31:34 +02:00
parent 7d4a64b865
commit 084aa665ca
18 changed files with 222 additions and 79 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef WTA_H
#define WTA_H
#include <Watchy.h>
#define WTA_URL "http://worldtimeapi.org/api/timezone/"
#define WTA_TIMEZONE "Europe/Paris"
#define WTA_UPDATE_SHORT_INTERVAL 30 //minutes
#define WTA_UPDATE_LONG_INTERVAL 300 //minutes
#define WTA_UPDATE_TIMEOUT 10000 //ms
class WatchySynced : public Watchy
{
using Watchy::Watchy;
public:
void readWorldTime();
};
#endif