I asked about rate limit to ensure if I forced a refresh on all sensors concurrently that it wouldn’t be an issue. Was just curious If there is X calls per Y timeframe.
I think once a per 5 seconds is a good metric. If I need more I could query the endpoint directly.
Bugs:
- ack. That works
- If it isn’t a lot of effort keep polling and update the main dashboard, then I would call that an easy win. As far as refreshing every minute, I’d say that would be ideal assuming devices update on their normal 60 second polling, and that force refresh continues to poll sensors and update the UI.
If bandwidth isn’t a major concerned maybe 5 second force-refresh button on the dashboard for all sensors when the window is in foreground (App active: true) ? That way if people aren’t looking, you aren’t polling. (I have no idea the level of effort for this tho)
Use cases for updates on the dashboard:
- being able to see >1 VWC sensors react every 5 seconds during an irrigation event
- being able to calibrate multiple sensors at the same time
- calibrating third party sensors against pulse
- I think a more responsive UI/UX is better user experience. Seeing your stuff update more often than every 60 seconds is a big win, especially the dashboard. I imagine most long duration users are mostly hanging out on the dashboard.