1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-28 07:50:11 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices
g_p 7cb7c0ea8a Nothing CMF Watch Pro: Add weather support
This patch adds support for current weather, and next 6 days' weather. Condition mapping added to align with the available icons on the watch.
It also transmits the hourly condition and temperature for the coming 24 hours as part of the update.

Tested on CMF Nothing Watch Pro firmware 11.0.0.50 with weather data cooming from Breezy Weather (using Accuweather)

For current day:
- Weather symbol shows
- Name of current location shows (long names scroll)
- Current temperature shows
- Written condition shows (e.g. "Cloudy")
- Min/max temperatures show
- Air quality indicator shows

For upcoming days:
- Weather symbol shows
- Min/max temperatures show
- Name of day shows (patch doesn't touch this)

Nothing CMF Watch Pro: Use putShort() for air quality indicator; fix max location length

- Using putShort() as suggested from code review - tested to give same result
- Reduced max location length to 16 bytes, as 32 was not working

Nothing CMF Watch Pro: Better handle limited data from weather providers

- Check max length of daily and hourly datasets
- Populate with dummy data if insufficient data available
- Use null as the weather condition in any situation where no data available

Nothing CMF Watch Pro: If hourly weather data is missing, use current data

This should create a better fallback behaviour if a weather source is lacking hour-by-hour data.
Assuming the current data will apply in the next hour is less messy than showing placeholder (inaccurate) figures.

Nothing CMF Watch Pro: Allow location names of up to 30 characters, improve string processing
2024-03-25 22:45:36 +00:00
..
amazfitbip Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
asteroidos Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
banglejs Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
binary_sensor Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
casio Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
cmfwatchpro Nothing CMF Watch Pro: Add weather support 2024-03-25 22:45:36 +00:00
divoom Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
domyos Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
femometer Plotting Temperature (#3381) 2024-03-09 14:00:09 +00:00
fitpro Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
flipper/zero Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
galaxy_buds Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
hplus Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
huami Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
huawei Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
id115 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
itag Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
jyou Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
lefun Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
lenovo Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
liveview Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
makibeshr3 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
miband Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
mijia_lywsd Mijia MHO-C303: Initial support 2024-01-17 17:55:15 +00:00
miscale2 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
no1f1 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
nothing Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
nut Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
pebble Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
pinetime Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
qc35 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
qhybrid Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
roidmi Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
smaq2oss Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
soflow Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
sony Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
sonyswr12 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
supercars Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
test Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
tlw64 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
um25 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vesc Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vibratissimo Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vivomovehr Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
waspos Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
watch9 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
withingssteelhr Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
xiaomi Xiaomi: Fix temperature sample range 2024-03-19 21:00:21 +00:00
xwatch Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
zetime Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
AbstractBLClassicDeviceCoordinator.java Xiaomi: introduce XiaomiSppSupport 2024-01-17 20:16:38 +00:00
AbstractBLEDeviceCoordinator.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractDeviceCoordinator.java Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
AbstractSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractSampleToTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
DeviceCoordinator.java Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
DeviceManager.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
EventHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
InstallHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
TimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
UnknownDeviceCoordinator.java Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00