Files
Gadgetbridge/app
Peter KandThomas Kuehne 9b7d380257 Zepp OS: send real coordinates in v5 place response
The v5 place dataset hard-coded latitude/longitude to "0.0" and used a
constant locationKey "accu:123456", which prevented watches that were
never provisioned via the official Zepp app (Bip 6, Active 2, ...) from
accepting the response as authoritative — they treated the zero coords
as a missing-location signal and silently refused to display weather
(issue #5653).

- ZeppOsWeatherHandlerV5.createPlace: pull lat/lon from WeatherSpec
  when set, else fall back to the user-configured location pref. Format
  with Locale.ROOT and derive a stable per-location locationKey from a
  hash of the coords so the watch can dedupe responses.

- ZeppOsWeatherService.onSendWeather: same fallback chain for the
  CMD_SET_DEFAULT_LOCATION packet so the watch's default-location state
  is bootstrapped with real coordinates instead of "1.234,-5.678".

Refs #5653.

source: https://github.com/PeterXMR/Gadgetbridge

(cherry picked from commit be87ac3364fbf5725f43e3dbac87ef2e103fdd89)
2026-06-07 05:32:42 +00:00
..
2024-02-19 12:14:36 +01:00