Initial basic application

This commit is contained in:
Philip Abbey
2023-10-31 13:32:42 +00:00
parent 3f713f5760
commit 8a4f514e6b
16 changed files with 521 additions and 0 deletions

15
source/Globals.mc Normal file
View File

@ -0,0 +1,15 @@
using Toybox.Lang;
class Globals {
// Enable printing of messages to the debug console (don't make this a Property
// as the messages can't be read from a watch!)
static const debug = false;
static const updateInterval = 5; // seconds
// static hidden const apiUrl = "https://homeassistant.local/api";
static hidden const apiUrl = "https://home.abbey1.org.uk/api";
static function getApiUrl() {
return apiUrl;
}
}