Skip to content

How exactly does SimpleWeatherService get weather data? #2200

Answered by vkareh
ForeskinJim asked this question in Q&A
Discussion options

You must be logged in to vote

@ForeskinJim for this you need to look at the matching pull request in Gadgetbridge: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/4011
The current buffer for weather data is 48 bytes (plus a \0 or NULL character to end the array). This is the case in both Gadgetbridge and InfiniTime, so sending the data to the watch means filling that array with data data described in the documentation.

For the sunrise data, I just added a few more bytes to accomodate that data, right after what was there. The order doesn't matter much, it just needs to be encoded and decoded correctly by both the sender and receiver. Notice in Gadgetbridge that I just put the data in the next adjacent bytes aft…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ForeskinJim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants