29 Commits

Author SHA1 Message Date
Philip Abbey
b6719365b2 Changes as per issue. 2024-11-19 21:56:32 +00:00
Philip Abbey
11ecf88ee2 An assortment of cosmetic changes
JSON schema fix to remove 'template' as a valid option, punctuation in strings, whitespace, and a new application history entry.
2024-11-18 19:39:13 +00:00
Philip Abbey
a48ab486ae 2 fixes as required by issue 185
Solution to a race condition with starting updates and amendment to error message presentation on Webhook ID creation failure.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-09-07 20:27:58 +01:00
Philip Abbey
75ea23dfbd 7 New devices, mainly Fenix
SDK updated to 7.3.0 in order to get new devices to work in simulation. This means some function prototypes have had to be amended.
2024-09-05 21:23:49 +01:00
Philip Abbey
4432c7b9a0 Update WebhookManager.mc
Speculative fix to handle the callback data from webhook generation perhaps not being Lang.Dict.
2024-08-30 15:49:06 +01:00
Philip Abbey
a424e35784 Update WebhookManager.mc
Returned internationalized string for unavailable to "unknown" as per review comments advice.
2024-08-24 13:58:47 +01:00
Philip Abbey
5558e25bda Bug fix for activity reporting
Added 'has' clauses around additional ActivityMonitor.Info fields that are not present on all devices.
2024-08-24 12:28:54 +01:00
Klaas Winter
43378bfe8c Set icons for sent sensor values 2024-08-05 19:34:26 +02:00
Klaas Winter
700e7ca822 Send heartrate, floor, and respiration rate values to Home Assistant 2024-08-05 18:02:37 +02:00
Philip Abbey
dfa4cdd9b8 Moved template status updates to webhooks
This seems to work for non-privileged users.
2024-07-19 15:15:32 +01:00
Philip Abbey
69ddb0f197 Amended "no activity" condition
Back to using elapsed time.
2024-01-29 19:06:58 +00:00
Philip Abbey
55423c4eb7 Using System.getDeviceSettings().activityTrackingOn
Instead of activity elapsed time. Also forgot to update the WebhookManager class code.
2024-01-28 19:52:20 +00:00
Joseph Abbey
930f1525b3 Best practices! 2024-01-28 13:59:07 +00:00
Joseph Abbey
6fc639f17f Report -1 instead of null for no activity 2024-01-28 13:05:34 +00:00
Joseph Abbey
6b3a17bea3 Add GPS accuracy to update_location webhook and changed activity reporting 2024-01-27 15:39:22 +00:00
Joseph Abbey
96abff9339 Fix spacing of arrows 2024-01-27 14:02:05 +00:00
Philip Abbey
4ff1509046 API level fix
Added 'has' test for Activity.getProfileInfo(). Reverted automatic changes to XML prettiness.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-27 13:57:21 +00:00
Joseph Abbey
e3288c9353 GPS and current activity in background service 2024-01-27 13:11:24 +00:00
Philip Abbey
0b80e4546d Corrected a previous incomplete commit
All now "WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String"
2024-01-21 20:43:11 +00:00
Philip Abbey
6e67c4cf2a Removed RezStrings.mc
And in-lined the resource strings fetching.
2024-01-21 20:38:01 +00:00
Philip Abbey
d9ecaf34ee Removed Debug
On some devices it looks like removing the System.println() statements from inside an 'if' clause whose condition is a constant (static constant Globals.scDebug) makes a memory saving. This would suggest the compiler does not propagate constants and prune unreachable code. However in the device of greatest interest debug removal has made no difference to the memory usage. Here the conditional clauses have been turned into comments that can be removed on a case-by-case basis otherwise the debug printing is too voluminous anyway.
2024-01-21 17:53:37 +00:00
Philip Abbey
44ec2e2eb1 Initial Solution 2024-01-19 19:26:02 +00:00
Restyled.io
94bc49afe2 Restyled by whitespace 2024-01-14 11:52:49 +00:00
Joseph Abbey
31b30788b1 add TemplateMenuItem 2024-01-14 08:00:49 +00:00
Joseph Abbey
32ce1d2a74 Fix naming 2024-01-12 18:01:00 +00:00
Joseph Abbey
22bb84e13b Handle errors for the second step 2024-01-11 20:48:46 +00:00
Joseph Abbey
a211565810 2024-01-11 17:37:18 +00:00
Joseph Abbey
f155ab0925 Added error messages for first request 2024-01-11 17:27:52 +00:00
Joseph Abbey
5f794388e6 Resolve review comments 2024-01-11 07:16:38 +00:00