Comments (4)
The updates are based on a "round robin" state fetch. This is a constraint within which the design operates. The watch app needs to be responsive to external changes, e.g. by the phone app. What you are suggesting would mean:
- A very long time for the initial display of the menu, such that users might think the app is broken.
- When would you update the display for external changes (e.g. via web browser)?
See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/README.md#external-device-changes
Make loading screen and load switches state only when response comes
Its not one response but many individual ones. The separate responses are necessary.
Without a fundamental redesign, and probably some changes to the way HA services API calls, this is not going to happen.
from garminhomeassistant.
maybe don't show switch icon until you know the state of that switch?
from garminhomeassistant.
The Connect IQ API does not give developers that level of control.
At the end of the day, its just a small watch app that covers a fraction of what the HA App or Web GUI can do, so it will always be inferior and limited by comparison.
from garminhomeassistant.
Related and probably good enough is https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi/ToggleMenuItem.html#setEnabled-instance_function
So items can be disabled until they are first updated. That will prevent the toggle menu item toggling until after it has been updated, which gives me misgivings about it being a good idea.
from garminhomeassistant.
Related Issues (20)
- Client certificate authentication HOT 6
- Re-enable support for Edge 840
- Activity Completed Background Update HOT 1
- Bugfix for #149
- Better handling of template errors
- Can't open app with right swipe HOT 8
- No JSON returned from HTTP request HOT 4
- Application crashes when started out of Bluetooth range
- Templating & content for all types HOT 3
- App v2.16 breaks on Forerunner 55 with IQ(!) screen HOT 6
- Received invalid webhook payload: value must be at least 0 for dictionary HOT 12
- Even application or Widget won't work if my phone is connected on WIFI. (Garmin VENU3 or EDGE 830) HOT 8
- Tidy up two small issues
- Deprecate "template" items
- Application crashes just after displaying the menu
- Templated content truncated on FR55 HOT 4
- Tap confirmation toast does not disappear without user intervention HOT 4
- Add support for the latest devices released from Garmin HOT 7
- Potential race condition with starting menu status updates.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garminhomeassistant.