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
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.
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
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.
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
Philip Abbey
51081ee2e6
Update HISTORY.md
...
Added v2.16
2024-08-18 13:03:30 +01:00
Philip Abbey
7c7130367f
Update Settings.mc
...
Rearranged 'else' clauses.
2024-08-18 12:26:45 +01:00
Philip Abbey
42d1a7233c
Update Settings.mc
...
Test the phone is connected before attempting WebHook HTTP requests.
2024-08-18 12:04:34 +01:00
Philip Abbey
a213c6851e
Largely cosmetic
...
Removed debug that escaped.
Belt & braces field to prevent the update chain being started twice.
2024-07-26 18:23:22 +01:00
Philip Abbey
9eed5affdc
Update HomeAssistantApp.mc
...
Guard against dereferencing null. Belt & braces, as this has not been an issue.
2024-07-26 17:16:07 +01:00
Philip Abbey
98c9c42366
Update HomeAssistantApp.mc
...
Fixed debug printing where the method name was wrong. Changes in commented out debug code only.
2024-07-26 16:55:13 +01:00
philipabbey
97030dc1b8
Apply automatic changes
2024-07-26 08:16:05 +00:00
Philip Abbey
6a2a791146
Update strings.xml
...
Removed glance scope
2024-07-26 08:56:52 +01:00
Philip Abbey
1eb2fbed0e
Added internationalisation of new strings
2024-07-26 08:50:10 +01:00
Philip Abbey
a86133fd87
Update HISTORY.md
...
v2.15 added
2024-07-25 23:36:11 +01:00
Philip Abbey
0ae39a029f
Update HomeAssistantTemplateMenuItem.mc
...
Template errors now displayed per item.
2024-07-25 20:38:17 +01:00
Philip Abbey
3cebd106eb
Update HISTORY.md
...
v2.14
2024-07-25 08:51:53 +01:00
Philip Abbey
9030a00d7d
Update BackgroundServiceDelegate.mc
...
Put check for methods with 'has' back in.
2024-07-22 22:18:27 +01:00
Philip Abbey
a49dd6554f
More responsive status when using a polling delay
...
When using a polling delay, an action will trigger an immediate round of updates.
2024-07-20 19:16:42 +01:00
Philip Abbey
fc1a0eeb6d
Update HomeAssistantApp.mc
...
When Settings.getPollDelay() > 0, do not wait for this time before the initial batch of updates, so the app is more responsive on opening.
2024-07-20 18:07:37 +01:00
Philip Abbey
61f6d69e64
Update HISTORY.md
...
Added a second feature to 2.13 in anticipation.
2024-07-20 17:39:59 +01:00
Philip Abbey
98af5578f0
Added update to telemetry on completion of an activity
2024-07-20 17:28:57 +01:00
Philip Abbey
c18736e40d
Update Templates.md
...
Examples now up to date with schema changes.
2024-07-20 17:23:00 +01:00
Philip Abbey
a139742265
Update HISTORY.md
...
Ver 2.13 text added in anticipation.
2024-07-19 17:05:19 +01: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
1c4add693d
Update README.md
...
Amended advice based on a report at https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/280 .
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com >
2024-07-01 08:40:04 +01:00
Philip Abbey
83914e8d8d
Update monkey.jungle
...
Missed the Jungle file.
2024-06-15 11:13:10 +01:00
Philip Abbey
f4ca55d741
Devices Edge 540 and Edge 840 re-enabled
...
@Petucky reports the application works well on an Edge 840 by sideloading the code from an Edge 830 device.
2024-06-15 11:00:58 +01:00
Philip Abbey
5d34db7b6a
Update README.md
...
Typo
2024-05-04 14:29:54 +01:00
Philip Abbey
cfaa31d5ee
Update README.md
...
Typo
2024-05-04 14:28:33 +01:00
Philip Abbey
52ee270788
Update README.md
...
Note about HTTP
2024-05-04 10:06:59 +01:00
Philip Abbey
dec38889a5
Update HISTORY.md
...
Added version 2.11
2024-04-17 14:06:34 +01:00
Philip Abbey
586d85e706
Update export.cmd
...
Commit directly to main as not application code.
2024-04-17 08:26:52 +01:00
Philip Abbey
30b55aec3e
Merge branch 'main' of https://github.com/house-of-abbey/GarminHomeAssistant
2024-04-17 08:24:52 +01:00
philipabbey
93d672dd40
Apply automatic changes
2024-04-17 07:09:18 +00:00
Philip Abbey
9130bc7121
Merge pull request #139 from house-of-abbey/138-cached-menu-will-still-be-used-even-if-the-setting-is-deactivated
...
When the cache is deactivated is now also cleared.
2024-04-17 07:56:49 +01:00
Philip Abbey
a6e386c5e6
Removed scope="glance" from another language corrections.xml file
2024-04-17 07:52:28 +01:00
Philip Abbey
2ffd83ebf5
When the cache is deactivated is now also cleared.
2024-04-16 22:58:53 +01:00
philipabbey
48b7e7efe5
Apply automatic changes
2024-04-16 06:35:49 +00:00
Philip Abbey
7bb270aae8
Update corrections.xml
...
Changed `<string id="Menu">Menu</string>` to `<string id="GlanceMenu">Menu</string>`.
A trivial fix so bypassing reviews.
2024-04-16 07:01:38 +01:00
Philip Abbey
ac117952d0
Merge pull request #136 from house-of-abbey/135-string-change-request-czech-translation-inappropriate
...
Corrected Czech language strings as advised
2024-04-16 06:31:26 +01:00
Philip Abbey
8f685af8ca
Missed two System.println() string corrections.
2024-04-15 21:12:08 +01:00
Philip Abbey
b17d12fe54
Corrected Czech language strings as advised
...
Also amended some trivial System.println() strings
2024-04-15 19:29:32 +01:00
Philip Abbey
d5c39fa7f0
Documentation: Screenshot for Unicode Characters
2024-03-31 16:45:31 +01:00
philipabbey
b4b113f4e1
Apply automatic changes
2024-03-30 20:26:40 +00:00
Philip Abbey
517e36cfb0
Update Templates.md
...
Amended wording.
2024-03-30 14:19:23 +00:00
Philip Abbey
7071362656
Update Templates.md
...
Examples with unicode characters.
2024-03-30 13:36:23 +00:00
Philip Abbey
e37b2a76aa
Merge pull request #129 from jose1711/sk_translation
...
Corrected a few strings in Slovak.
2024-03-30 12:18:44 +00:00
Philip Abbey
2f4c14d7d5
Merge pull request #126 from jose1711/typo
...
Fix typo
2024-03-22 20:04:03 +00:00
Philip Abbey
6599c22664
Merge pull request #123 from house-of-abbey/103-possiblity-to-add-polling-interval-for-states-to-save-battery
...
103 possiblity to add polling interval for states to save battery
2024-03-21 19:34:55 +00:00
Philip Abbey
c66950cfb0
Update HISTORY.md
2024-03-21 19:32:59 +00:00
Philip Abbey
2a99069f48
Review comments
2024-03-21 19:29:52 +00:00
Philip Abbey
bb9c8b1088
Merge pull request #125 from house-of-abbey/124-add-4-more-devices
...
Added 4 new devices
2024-03-21 17:43:50 +00:00
Philip Abbey
34e56c5da0
Added 4 new devices
...
Devices are: descentmk343mm, descentmk351mm, fr165, fr165m.
2024-03-21 17:39:58 +00:00
Philip Abbey
0a93f4f9ba
Additional documentation changes
...
Including settings screenshot.
2024-03-21 13:53:01 +00:00
philipabbey
eb0d0f5044
Apply automatic changes
2024-03-21 09:30:42 +00:00
Philip Abbey
a0fe746c1d
Amended update method to entire rounds
...
A single larger delay is now inserted once between entire rounds of status updates,
2024-03-21 09:15:47 +00:00
philipabbey
00b071c132
Apply automatic changes
2024-03-20 23:46:54 +00:00
Philip Abbey
cacd9f856f
Initial solution
2024-03-20 23:33:13 +00:00
Philip Abbey
eebf5c9dcd
Update Templates.md
...
Removed a reference to a problem mostly associated with Widgets.
2024-03-18 21:20:56 +00:00
Philip Abbey
da645f17ad
Update README.md
...
Removed an old reference to a known issue with Widgets.
2024-03-18 08:10:49 +00:00
Philip Abbey
dbd0a42d2e
Merge pull request #120 from house-of-abbey/118-allow-turning-off-vibration
...
118 allow turning off vibration
2024-03-08 16:20:36 +00:00
Philip Abbey
aeeb1aa96e
Documentation update
2024-03-08 09:18:48 +00:00
philipabbey
be66c282df
Apply automatic changes
2024-03-07 22:31:32 +00:00
Philip Abbey
4dc31e3c65
Removed a widget only property
...
That should have been removed previously.
2024-03-07 22:14:25 +00:00
Philip Abbey
92d3fbee57
Initial fixes
2024-03-07 21:59:33 +00:00
Philip Abbey
181335bfd7
Update README.md
...
Added a new [!IMPORTANT] tag
2024-03-06 18:34:40 +00:00
Philip Abbey
b684c1172a
Merge pull request #116 from house-of-abbey/113-splitting-widget-and-app-code
...
113 splitting widget and app code
2024-02-20 20:59:52 +00:00
Philip Abbey
0ee20de6c5
Update HISTORY.md
2024-02-18 15:04:32 +00:00
Philip Abbey
d5ed16e6d2
Amended export.cmd
...
And removed an old comment from HomeAssistantApp.mc
2024-02-18 15:00:36 +00:00
Philip Abbey
8e2a4333ca
Reverted manifest to test app ID
...
Removed comments used for running the widget in simulation.
2024-02-11 19:37:43 +00:00
Philip Abbey
a65dcd6811
Removed widget specific code
2024-02-11 19:35:34 +00:00
Philip Abbey
7b6fc65bf2
Update TroubleShooting.md
...
Spelling.
2024-02-11 19:30:12 +00:00
Philip Abbey
b65d45c955
Update README.md
...
Added known issue with iPhone's Connect IQ App
2024-02-11 18:31:49 +00:00
Philip Abbey
0dfcc65469
3 bug fixes as per the issue description
2024-02-05 19:09:26 +00:00
Philip Abbey
4d4a86f195
Update README.md
...
Added knwoon issue with Edge 540 and 840 devices.
2024-02-01 21:32:46 +00:00
Philip Abbey
9e1c5959ab
Merge pull request #107 from house-of-abbey/100-help-text-for-web-based-configuration-editor
...
Documentation for web editor
2024-01-31 13:36:34 +00:00
philipabbey
6e842af372
Apply automatic changes
2024-01-30 20:19:10 +00:00
Philip Abbey
2ad0480bbf
Merge branch 'main' into 94-add-gps-reporting-to-the-background-service
2024-01-29 20:41:55 +00:00
Philip Abbey
1d5ee735e8
Update corrections.xml
2024-01-29 20:41:09 +00:00
Philip Abbey
d694880969
Merge branch 'main' into 94-add-gps-reporting-to-the-background-service
2024-01-29 20:39:00 +00:00
Philip Abbey
763c9cc5e0
Merge branch 'main' into 94-add-gps-reporting-to-the-background-service
2024-01-29 20:37:56 +00:00
Philip Abbey
e332c7c466
Merge pull request #105 from tarekbecker/fix-german
...
Corrections for german
2024-01-29 20:37:36 +00: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