-
Notifications
You must be signed in to change notification settings - Fork 1.2k
weather 0.28: Fix UV positioning, hide when 0 #3908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds “mostly cloudy” as a filter before “cloud” or “part” to catch that specific phrase and use weather code 803 to drawBrokenClouds which was previously unused.
The newest iOS shortcut utilizes all the icons that are available from the weather app and has been updated in the README. |
Hey! I added a feels like display to the weather app, and updated the shortcut from here to send feels like as well. I am adding the readme changes to my PR. Is that alright? |
@gfwilliams do you have any insight for this? |
@RKBoss6 That would be nice to have. The problem I ran into with the UV is there was not a lot of space and combining it with the icon container actually broke the icon clearing and also made them smaller. Maybe it could be switched from “real temp” to “feels like” when touching the temp and a little indicator showing if it’s the feels like temp. Maybe a small blue dot next to it if it’s colder than the real temp and red if it’s warmer? Another nice one to display would be precipitation chance since it’s already being sent. Perhaps an entire second page that could be swiped to with forecast information like the other weather PR out there. We might be able to get that from iOS too. |
@thyttan I actually mapped that one to mostly cloudy in the iOS shortcut so it is being used now. Thanks! |
@stweedo I was debating creating a second page, so it wouldn't be as cramped. Unfortunately, I am pretty new at JS, and have no clue how to do that. ;) If you have any insight on how to do that, that would be very much appreciated! |
As for the icon breaking, for right now, the only issue I can see is the icon does not fully erase when a new icon is drawn, like you mentioned. Do you know a way in Layout to increase the clearing size, or do we just use g.clearRect()? |
@Rengyr @stweedo @RKBoss6 What do you think of the merge order of these weather PRs? It seems to me this order would make sense: There will probably need to be some tweaks to subsequent PRs as preceding ones are merged. @stweedo Do I read you right that this PR is ready to go with regards weather codes you wrote about? |
Okay, one more change to the iOS shortcut. Added a check for “mostly sunny” so it doesn’t show the full sun, but the sun with a cloud in front of it. https://www.icloud.com/shortcuts/73be0ce1076446f3bdc45a5707de5c4d |
@stweedo did you add the new shortcut to the Readme, or should I? |
Honestly, now might not need it, but we could do with a seperate PR for readme and shortcut updates... |
Yeah I did update the PR I had with the new link, which includes the Feels Like temperature. |
Looks good to me, just one thing Currently, while the "feels like" is contained in the gadgetbridge v2 weather data, it's not really usable without parsing/requesting forecast data as it's not in v1 data. Though it could be added to v1 in gadgetbridge to fix this issue. Otherwise the field will always have unknown value in android. Though I might have something more to discus on my PR, so it can be done last so it doesn't block other. |
Ok - lets go with this one first then 🙂 |
Separated the UV index display from the icon container as it made the icons smaller and interfered with the lazy rendering so that it wouldn't clear properly when drawing a new icon. It's now positioned under the wind speed and hides when the UV index is 0.
I also added "haze" in the BangleDumpWeather shortcut that maps to weather code "741" along with mist and fog and "shower" that maps to code "521" that was previously not used by the shortcut. I put the new link in the README. There is still one icon that this shortcut is not utilizing yet called drawBrokenClouds when it's in the 800's but not 800, 801, or 802. Any ideas of what we could filter for to show that? We already have "wind" and "part" map to "801" for drawFewClouds, and "cloud" maps to "802" for drawCloud.
https://www.icloud.com/shortcuts/ae5f3d7d6ed3460c98a3396b267aa1c5