50 Commits

Author SHA1 Message Date
Philip Abbey
71cba8c21c Code attribution for author of PIN entry.
Prior to sorting out inheritance.
2025-03-28 00:20:53 +00:00
Philip Abbey
fd58625640 Info only menu item 2025-01-19 13:44:53 +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
Matthias Oesterheld
97b5371a0e add "pin": true JSON config property, add default pin, add pin confirmation to toggle, adjust JSON schema 2024-11-13 21:30:36 +01:00
Matthias Oesterheld
fb2bb7f566 remove transcoding, move pin to settings, remove pin from schema 2024-11-11 20:06:35 +01:00
Matthias Oesterheld
b48102f9a6 add pin confirmation 2024-10-15 19:59:04 +02: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
Joseph Abbey
1b40231360 Fix errors 2024-08-30 13:49:09 +01:00
Joseph Abbey
1c182dd615 Deprecate template type 2024-08-30 13:25:16 +01:00
Philip Abbey
685cda7924 Added template option to toggle menu items 2024-08-25 19:34:29 +01:00
Philip Abbey
ea32d71a2b Added templates to group items 2024-08-24 18:31:47 +01:00
Philip Abbey
0dfcc65469 3 bug fixes as per the issue description 2024-02-05 19:09:26 +00:00
Philip Abbey
9c001f3402 Cosmetic 2024-01-22 10:28:35 +00:00
Philip Abbey
fc7302ad3b Update HomeAssistantView.mc
Removed empty else clause.
2024-01-21 20:00:52 +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
Philip Abbey
2be255bb71 Removal of menu identifiers as not actually required
Toggle menu is now consistent with the use of data objects in tap and template. HA 'notify' actions now work.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-19 18:04:55 +00:00
Philip Abbey
67a5f0a14e Amending naming convention
Removing some inconsistencies
2024-01-19 16:11:30 +00:00
Restyled.io
a48c6a38fe Restyled by whitespace 2024-01-18 21:17:54 +00:00
Philip Abbey
7ffbd84785 Initial working version 2024-01-17 23:31:27 +00:00
Joseph Abbey
2cf087ed23 Remove lists left around after initialisation 2024-01-14 14:20:27 +00:00
Joseph Abbey
1f075a8c0f Remove text versions of menu items 2024-01-14 13:29:33 +00:00
Joseph Abbey
31b30788b1 add TemplateMenuItem 2024-01-14 08:00:49 +00:00
Restyled.io
c1103d9325 Restyled by whitespace 2024-01-09 10:56:20 +00:00
Philip Abbey
864a832e69 GUI refresh amendments 2024-01-09 08:58:58 +00:00
Philip Abbey
0a2d257421 Initial solution 2024-01-08 00:08:12 +00:00
Philip Abbey
b039dfbc3b Added RezStrings.mc
The intention is to factorise out many copies of the same string to a central location. Now need to deal with making the variables read-only.
2024-01-01 12:57:50 +00:00
Philip Abbey
3934ca53ba New glance and widget views
Added ability to test if we're a widget or a watch-app. Added troubleshooting documentation.
2023-12-21 11:37:30 +00:00
Philip Abbey
4ab25ef860 Comment header update
Corrected spelling of username of contributor.
2023-12-17 12:46:20 +00:00
Philip Abbey
fc2f509085 Merge branch 'main' into 29-vivoactive-4s-crashes-user-reported-error 2023-12-17 11:57:24 +00:00
Philip Abbey
16383f61a4 Added SomeoneOnEarth to all source headers
Give credit to a co-author.
2023-12-16 17:07:43 +00:00
SomeoneOnEarth
9aa32703cc Directly quit w/o showing RootView (if possible) 2023-12-15 00:38:03 +01:00
Philip Abbey
8c0540ee45 Initial version with "auto quit"
Quit the application after a user settable period of time based on a timeout value from the settings.
2023-12-02 19:04:53 +00:00
Philip Abbey
2d07eaa9c6 Update HomeAssistantView.mc
Review comment about a random space.
2023-12-01 11:28:19 +00:00
Philip Abbey
0ab9cb800a Initial solution
For optional confirmation dialogue box.
2023-12-01 09:15:59 +00:00
Philip Abbey
71c1ccc229 Code review comment
Removed debug
Fixed manifest App ID for release
2023-11-21 17:58:18 +00:00
Philip Abbey
ce90d9d47f Single HomeAssistantService for all Taps
1. Amended code for a single HomeAssistantService for all 'tap's
2. Removed now redundant GET request for taps without a service now that having a service is enforced.
3. Determined that migrating API code from 'toggle's to the HomeAssistantService is awkward due to the close coupling with other methods in the class.
2023-11-20 21:32:35 +00:00
SomeoneOnEarth
ab995db5ba Removed redundant code from spike 2023-11-19 13:24:37 +01:00
SomeoneOnEarth
d93aa78686 Refactored MenuItems creation 2023-11-19 13:11:48 +01:00
SomeoneOnEarth
081a41737f Bugfix 2023-11-19 13:07:07 +01:00
SomeoneOnEarth
2c09ab71a8 Lean UI spike use correct icons for menu and tap 2023-11-19 13:07:07 +01:00
SomeoneOnEarth
8764969537 Leaner UI spike 2023-11-19 13:07:03 +01:00
Philip Abbey
4b320086ee Tap menu items without a service tag will be ignored.
The JSON schema checker is relied on to highlight this error.
2023-11-17 17:51:01 +00:00
Philip Abbey
fde270ff34 Renamed class variables
There's a Monkey C convention to have class variable names start with 'm', then be camel case. 'm' for 'member' according to https://developer.garmin.com/connect-iq/reference-guides/monkey-c-reference/.
2023-11-11 13:58:35 +00:00
Philip Abbey
e7c4411dd2 Fix for the update rate
Now perform a "round robin" of all toggle menu items. The delay is currently 100 ms to avoid Communications.BLE_QUEUE_FULL errors.
2023-11-11 13:36:08 +00:00
Joseph Abbey
5afb08d096 Service call for tap item 2023-11-09 21:13:09 +00:00
Philip Abbey
816b0dc890 Internationalisation & Multi-watch support
Copied two methods from GarminThermoNest to translate languages and manage different sized icons for the various sizes of watch. Also copied ErrorView for smaller wrapped text for error messages.
2023-11-02 21:32:42 +00:00
Philip Abbey
d81fa1abcd Added confirmation of tap event and amended delegate decoding of actions. 2023-11-01 19:46:28 +00:00
Philip Abbey
7dd3ccc670 Configurable Menu
Uses a JSON file served by a URL.
2023-10-31 20:49:38 +00:00
Philip Abbey
8a4f514e6b Initial basic application 2023-10-31 13:32:42 +00:00