| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Build size and comparison to main:
|
Sorry, something went wrong.
|
I've made this a draft since #2100 is not merged and may still get some protocol changes. I'm also playing with different ways of representing this data, especially the sunset/sunrise. For example, this iteration:
But I have another version that inverts the entire thing:
Before midnight (but after sunset): But in any case, I'm exploring different paths and would like people's opinion on what they want to see and how they want it presented. Also could be fun to add more data to the protocol, like wind speed/direction, phase of the moon (can use another arc to show the moonrise/moonset times, as well as an icon of the moon phase), etc. |
Sorry, something went wrong.
|
Redesign looks great visually! The sun time one is tricky. Not sure what I prefer, the empty arc when the sun is down is certainly good enough IMO but doing more might be nice. I think my biggest feature request would probably be by-hour weather for the next few hours. But not sure if that's practical space wise. |
Sorry, something went wrong.
|
Hourly forecast might be fine if we only include limited info. The sunrise/sunset times may be included in the daily forecast. Current Weather: - [0] : Message type = `0` - [1] : Message version = `1` - [2][3][4][5][6][7][8][9] : Timestamp in local time - [10, 11] : Current temperature (°C * 100) - [12, 13] : Minimum temperature (°C * 100) - [14, 15] : Maximum temperature (°C * 100) - [16]..[47] : location (string, unused characters should be set to `0`) - [48] : icon ID - [49, 50] : Sunrise (16 bits, number of minutes elapsed since midnight) - [51, 52] : Sunset (16 bits, number of minutes elapsed since midnight) Daily Forecast: - [0] : Message type = `1` - [1] : Message version = `0` - [2][3][4][5][6][7][8][9] : Timestamp in local time - [10] Number of days (Max 5, fields for unused days should be set to `0`) - [11, 12] Day 0 Minimum temperature (°C * 100) - [13, 14] Day 0 Maximum temperature (°C * 100) - [15] Day 0 Icon ID - [16, 17] : Day 0 Sunrise (16 bits, number of minutes elapsed since midnight) - [18, 19] : Day 0 Sunset (16 bits, number of minutes elapsed since midnight) - [...] all other days, repeating from bits [11 - 19] Hourly Forecast: - [0] : Message type = `2` - [1] : Message version = `0` - [2][3][4][5][6][7][8][9] : Timestamp in local time - [10] Number of hours (Max 5, fields for unused days should be set to `0`) - [11, 12] Hour 0 Minimum temperature (°C * 100) - [13, 14] Hour 0 Maximum temperature (°C * 100) - [15] Hour 0 Icon ID - [...] all other hours, repeating from bits [11 - 15] Doing this adds 160 bits for sunrise/sunset (or 32 if we're stingy and only provide space for next day, which is the one we need), and 280 if we add hourly forecast for the next 5 hours (each hour is 40 bits, plus 80 bits of header) - this would still require assuming which hour it refers to, basically take the timestamp and add 3600 seconds for the first hour, 3600*2 for the second hour, etc. Alternatively, we round up to the next whole hour. What I don't want is to necessarily add a new timestamp (64 bits) for each next hour - we should do that calculation in Gadgetbridge instead. |
Sorry, something went wrong.
|
I think for each hour we only need to store one temperature, having a minimum and maximum per hour seems overkill Yeah agree, having a timestamp per hour would not be great. We could have one timestamp for the first hour and compute the rest? Might be a good compromise and avoids problems if a weather update is delayed due to a bad BLE connection or something |
Sorry, something went wrong.
This, most weather APIs (and the one I'm using in InfiniLink) don't even allow us to fetch min/max for each hour |
Sorry, something went wrong.
This change splits the weather screen into 3 pages: - Current weather conditions - 5-day forecast - Sunrise/sunset times
| Back | FazBrowse Home | New Git URL |
This change splits the weather screen into 3 pages:
Note: This requires #2100
Here are some screenshots of the full app:



And this shows the sun times animation:

The idea for showing the sun position arc was taken from Breezy Weather, which is the provider I use for Gadgetbridge:
