Restyled.io
a95736ebed
Restyled by whitespace
2024-01-22 22:20:26 +00:00
Philip Abbey
9c001f3402
Cosmetic
2024-01-22 10:28:35 +00:00
Philip Abbey
7786efd883
Update HomeAssistantApp.mc
...
Removed memory metrics
2024-01-21 20:46:55 +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
b80227e484
Update Settings.mc
...
Cosmetic
2024-01-21 20:11:47 +00:00
Philip Abbey
d9b345e5b8
Update Settings.mc
...
Cosmetic
2024-01-21 20:04:12 +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
26954cbc60
Update RootView.mc
...
Memory usage decimal place was never used due to integer arithmetic. A single character changes fixed that.
2024-01-21 13:00:31 +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
4e96036d66
Removed code to dismiss the ErrorView
...
The automatic ErrorView.unShow() when the HTTP Request callback success was preventing errors being read. Removing to see if they are really required.
2024-01-18 21:15:59 +00:00
Philip Abbey
7ffbd84785
Initial working version
2024-01-17 23:31:27 +00:00
Philip Abbey
81762fbf7d
Cached 'has' result in initialize()
...
Also amended a bit of README that was missed and added a memory usage in the RootView for widgets here memory is limited, to serve as a warning to users who are likely to complain.
2024-01-14 19:59:18 +00:00
Joseph Abbey
2cf087ed23
Remove lists left around after initialisation
2024-01-14 14:20:27 +00:00
Restyled.io
4b5c9ba8ba
Restyled by whitespace
2024-01-14 13:34:46 +00:00
Joseph Abbey
1f075a8c0f
Remove text versions of menu items
2024-01-14 13:29:33 +00:00
Joseph Abbey
cf2237958d
Turn off debug
2024-01-14 12:07:18 +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
7f8814d587
Automatically remove webhook id
2024-01-12 17:53:42 +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
Restyled.io
4190ce2362
Restyled by whitespace
2024-01-10 23:10:15 +00:00
Joseph Abbey
42e0a1b543
Use webhooks for battery
2024-01-10 23:08:08 +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
9724430168
Merge branch 'main' into 31-reduce-startup-delay
2024-01-08 00:14:05 +00:00
Philip Abbey
0a2d257421
Initial solution
2024-01-08 00:08:12 +00:00
Philip Abbey
92e6917589
Merge pull request #44 from house-of-abbey/42-uninternationalised-string-needs-adding-to-stringsxml
...
42 uninternationalised string needs adding to stringsxml
2024-01-07 21:27:29 +00:00
Restyled.io
bbaee49825
Restyled by whitespace
2024-01-07 19:12:40 +00:00
Philip Abbey
874ced99c2
Update Settings.mc
...
Do not cancel the background service just because we show the app's glance.
2024-01-07 19:12:03 +00:00
Philip Abbey
c0787733b7
Amended as required
...
**/strings.xml need recreating server side.
2024-01-06 21:33:48 +00:00
Philip Abbey
9a268eaf02
Updated RezStrings.mc
...
Variables are now read only via getters.
2024-01-01 14:17:04 +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
ae72313f5e
Settings reverted to a static class
2023-12-31 15:55:59 +00:00
Philip Abbey
56155f5f5c
Added Watch Battery transmission
...
Added a background service to send the watch battery level to Home Assistant.
Changed the Glance View as requested by a user.
Updated to new HA icon using SVG in stead of PNG.
2023-12-31 15:22:21 +00:00
Philip Abbey
2ed8e9a3df
Update HomeAssistantApp.mc
...
Found a bug when our Dynamic DNS went down. Can't update no menu items.
2023-12-24 12:43:34 +00:00
Philip Abbey
76c2aaa249
Finishing off widget+app code changes.
...
Glance now updates the status.
Fix for quitting the application when persistently displaying an ErrorView.
Added option for Widget RootView to immediately start HomeAssistant without waiting for a tap as requested by a user.
2023-12-23 14:30:58 +00:00
Philip Abbey
3de2e25b5d
Tidy up
2023-12-21 21:06:07 +00:00
Philip Abbey
27b6b63a7a
Update ErrorView.mc
...
Made the view scalable. Odd that it was not before.
2023-12-21 16:47:21 +00:00
Philip Abbey
332a10867d
Made RootView updateable
...
Changed the group/menu icon to be thicker.
2023-12-21 15:38:29 +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