- if there are no BG readings passed to the view, the chart was scaling from 40->400mg/dL which looks stretched for an empty chart.
- modified the upper bounding, in case of bgReadings array being nil, to use the user urgent high value
- colour updates/corrections for all widgets
- remove gray color for not recent readings in watch complications
- when using standard apple widgetkit constraints, changing the colour of the bg value and delta to gray when > x minutes old makes no sense as it doesn't indicate that the bg readings are old, rather than that the complication hasn't gotten new data yet (which can be normal for the Watch complication updates).
96ec614a
* lower the number of readings to send to live activity to stay under 4kB
* change some widget attributes to be computed on demand
* change private widget attributes naming convention to match others
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.
Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
- instructions will be specific to the heartbeat type being added
- change alert title for heartbeat to "Device Name" instead of "Transmitter ID" to avoid confusion
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.
Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
* Add new xDrip Widget Extension bundle ID
* Change bundle ID and target for Watch Complication Extension
* Change bundle ID and target for Watch App
* Change bundle ID and target for Widget Extension
* Resolve packages
* Update Testflight.md
Not tested by me!
Co-Authored-By: bjornoleh <63544115+bjornoleh@users.noreply.github.com>
Co-Authored-By: Liroy van Hoewijk <4643445+liroyvh@users.noreply.github.com>