497 Commits

Author SHA1 Message Date
Restyled.io
ecb2e8bc96 Restyled by whitespace 2024-09-05 21:57:35 +00:00
Philip Abbey
881700d0ed Update HISTORY.md
v2.21 text
2024-09-05 21:28:33 +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
2e7216b6b2 v2.20 documentation update v2.20 2024-08-30 21:18:56 +01:00
Joseph Abbey
57a44d8946 Update WebhookManager.mc (#179)
Speculative fix to handle the callback data from webhook generation
perhaps not being Lang.Dict.
2024-08-30 19:48:47 +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
15e2b19193 Deprecate template type (#177) 2024-08-30 14:32:22 +01:00
Joseph Abbey
1b40231360 Fix errors 2024-08-30 13:49:09 +01:00
Joseph Abbey
446c579660 Merge branch 'main' into 176-deprecate-template-items 2024-08-30 13:26:31 +01:00
Philip Abbey
da2e94caa3 Update TroubleShooting.md
Added instructions for how to send the debug log from the watch.
v2.19
2024-08-30 13:25:41 +01:00
Joseph Abbey
1c182dd615 Deprecate template type 2024-08-30 13:25:16 +01:00
Philip Abbey
fb5c2193f1 Create debug_log_location.png
Need a picture to explain to users where to fetch the debug logs from. Only gives the error message, but not the location unfortunately.
2024-08-30 13:18:09 +01:00
Philip Abbey
df3be94bf9 Documentation for v2.19 2024-08-29 23:12:13 +01:00
Joseph Abbey
17162c14f2 174 tidy up two small issues (#175)
Heading & vibrate
2024-08-29 21:18:03 +01:00
Philip Abbey
b5140ce8b4 Added vibrate to confirm toggle items tapped 2024-08-29 21:13:55 +01:00
Philip Abbey
17a5d89998 Prevent negative heading values. 2024-08-29 21:00:50 +01:00
Philip Abbey
63bc127aec Perform all updates in one request (#173) 2024-08-29 20:55:40 +01:00
Joseph Abbey
af43fde963 Merge branch 'main' into one-update-request 2024-08-29 19:03:12 +01:00
Philip Abbey
bbd9119a07 Update HomeAssistantToggleMenuItem.mc
Prevent multiple toggles for initiating one action. Only set the state when the called service returns with the confirmed value.
2024-08-28 23:01:28 +01:00
Joseph Abbey
47a8a6e4e6 New poll delay property id 2024-08-28 08:52:41 +01:00
Joseph Abbey
b476da6667 Revert compile_sim.cmd
Signed-off-by: Joseph Abbey <me@josephabbey.dev>
2024-08-28 08:45:07 +01:00
Joseph Abbey
bd37d5f2a8 Allow toggles to work if template fails 2024-08-26 20:11:19 +01:00
Joseph Abbey
2a48790f9c Individual errors 2024-08-26 20:09:24 +01:00
Joseph Abbey
0feecde178 165 templating content for all types (#170)
Submitting as an initial draft in order to guage feedback on the style.
In particular the solution to adding the code to the `toggle` menu item,
which has incurred duplication of code as I can't inherit from two
classes.
2024-08-26 19:42:51 +01:00
Joseph Abbey
e9a0c5d137 Single request to update 2024-08-26 18:59:17 +01:00
Philip Abbey
d387152593 Restyle 165 templating content for all types (#171)
Automated style fixes for #170, created by [Restyled][].

The following restylers [made
fixes](https://restyled.io/gh/house-of-abbey/repos/GarminHomeAssistant/jobs/4738467):

- [jq](https://stedolan.github.io/jq/)
- [prettier-json](https://prettier.io/docs/en/options.html#parser)
-
[whitespace](https://github.com/restyled-io/restyler-whitespace/blob/master/README.md)


To incorporate these changes, merge this Pull Request into the original.
We
recommend using the Squash or Rebase strategies.


**NOTE**: As work continues on the original Pull Request, this process
will
re-run and update (force-push) this Pull Request with updated style
fixes as
necessary. If the style is fixed manually at any point (i.e. this
process finds
no fixes to make), this Pull Request will be closed automatically.

Sorry if this was unexpected. To disable it, see our [documentation][].

[restyled]: https://restyled.io
[documentation]:
https://github.com/restyled-io/restyled.io/wiki/Disabling-Restyled
2024-08-25 19:47:20 +01:00
Philip Abbey
2ea349bfda Merge branch 'main' into 165-templating-content-for-all-types 2024-08-25 19:44:58 +01:00
Restyled.io
a35798f9d3 Restyled by whitespace 2024-08-25 18:42:34 +00:00
Restyled.io
4707f1ea9e Restyled by prettier-json 2024-08-25 18:42:33 +00:00
Restyled.io
3424576027 Restyled by jq 2024-08-25 18:42:32 +00:00
Philip Abbey
1846d682f7 Update HISTORY.md
v2.18 text line amended.
2024-08-25 19:39:27 +01:00
Philip Abbey
685cda7924 Added template option to toggle menu items 2024-08-25 19:34:29 +01:00
Philip Abbey
72e825566c Update TemplateMenuItem.mc
Fixed System.println() calls.
2024-08-25 19:33:33 +01:00
Philip Abbey
1dc95eeac7 Added callback function to TemplateMenuItem 2024-08-25 18:53:32 +01:00
Philip Abbey
08829dac1f Update export.cmd
Trivial update to give the cmd.exe a title.
v2.18
2024-08-25 16:50:08 +01:00
Philip Abbey
ca6e0733c5 Added null checking to activity stats (#169)
Position.getInfo().* might return null sometimes, so best check and
avoid a numerical error.

@KPWhiver My co-author is away presently, would you mind giving this
simple change the once over? Thanks!
2024-08-25 16:15:01 +01:00
Philip Abbey
01f073e67b Update BackgroundServiceDelegate.mc
Only submitting non-null values to HA, not fake zeros for null values.
2024-08-25 13:50:29 +01:00
Philip Abbey
64a9c5f274 Added null checking to activity stats
Position.getInfo().* might return null sometimes, so best check and avoid a numerical error.
2024-08-25 13:07:23 +01:00
Philip Abbey
ea32d71a2b Added templates to group items 2024-08-24 18:31:47 +01:00
Philip Abbey
f2fb7f65a0 Merge branch 'main' of https://github.com/house-of-abbey/GarminHomeAssistant v2.17 2024-08-24 14:30:44 +01:00
Philip Abbey
1e103069bc Update README.md
Feature differences between Application and Widget.
2024-08-24 14:30:23 +01:00
Philip Abbey
520309729d Bug fix for activity reporting (#167)
Added 'has' clauses around additional ActivityMonitor.Info fields that
are not present on all devices. I have also checked the other reporting
fields to ensure they are not device dependent.
2024-08-24 14:26:54 +01:00
Philip Abbey
d2aec16811 Update BackgroundServiceDelegate.mc
Failed to make commensurate changes to the background service code.
2024-08-24 14:21:02 +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
Philip Abbey
769731bff2 Send heartrate, floor, and respiration rate values to Home Assistant (#162)
This change sends the heartrate, respiration rate, stepcount, and floors
climbed/descended to Home Assistant as mobile app entities. There are a
lot more sensors that could potentially be added.

I have only tested this on a Vivoactive 4s as that is the only device I
own.

Let me know what you think and if there are any changes you would like
to see.
v2.16
2024-08-20 09:01:00 +01:00
Philip Abbey
2c56155593 Merge branch 'main' into more-mobile-app-sensors
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-08-19 12:36:33 +01:00
Philip Abbey
c38f91f456 Fixed merge conflict
Fixed a merge conflict made by more recent changes to fix a bug (https://github.com/house-of-abbey/GarminHomeAssistant/pull/164)
2024-08-19 12:33:23 +01:00
Joseph Abbey
94d806c4d3 163 application crashes when started out of bluetooth range (#164)
Test the phone is connected before attempting WebHook HTTP requests.
2024-08-18 14:15:52 +01:00
Philip Abbey
51081ee2e6 Update HISTORY.md
Added v2.16
2024-08-18 13:03:30 +01:00