mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
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)