Skip to content
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

Add notification Widget #18

Open
LeftyDextrous opened this issue Apr 1, 2024 · 10 comments
Open

Add notification Widget #18

LeftyDextrous opened this issue Apr 1, 2024 · 10 comments

Comments

@LeftyDextrous
Copy link

Hello,

Recently discovered your app. Very neat, very easy to read and figure out what the day will feel like.

That said, it'd be nice to have a notification that provides the temperature and some other information upon expansion. This is the killer feature I need in a weather app.

Cheers,
Lefty

@davidtakac
Copy link
Owner

Hey Lefty, thank you for the feedback. This is a good idea. A friend of mine suggested the same thing, and I agree. This is planned :)

What other information would you like? Personally, I don't use such features, so it would be great to gather some opinions.

@LeftyDextrous
Copy link
Author

Well, one useful feature is to have the notification icon be the tempurature, as it allows me to quickly check the weather from the top bar w/o opening my notifications. The last weather app I used gave a forecast for the next few hours but it'd be just as useful to have a brief summary of the current conditions, i.e. temperature, precip info, wind, humidity instead, since most of the time I check the notification only if I'm going outside for a commute or walk or similar unplanned excursion and don't plan to be outside for an event or anything.

@davidtakac
Copy link
Owner

Notification icon being the temperature is a pretty involved task because all of those would have to be separate images. I'm also not sure if temperature formatting is different in some locales, so that might be another can of worms.

What could be done instead is having the icon be one of the condition icons (rain, sunny, overcast etc.) and then have the basic info in text.

Could you tell me what application you used had that feature?

@LeftyDextrous
Copy link
Author

https://github.com/breezy-weather/breezy-weather

Breezy Weather. I have no idea how they did, well, anything, since I know precious little about programming, but it's open-source under LGPL, so you can look into how they did it

@LeftyDextrous
Copy link
Author

Perhaps the image could be generated on-the-fly from text input but I'd imagine that'd need another library or extra work.

@davidtakac
Copy link
Owner

Yeah as soon as I wrote that it would be involved work, I thought the same thing. Probably still a bit involved 😄 But fun to think about.

I'll see how Breezy did it, thanks!

@LeftyDextrous
Copy link
Author

LeftyDextrous commented Apr 2, 2024 via email

@papjul
Copy link
Contributor

papjul commented Apr 3, 2024

Hi, happy to see you back with a new weather app, David! I really liked Prognoza, especially the technical part which you're very good at :)

Initially, Geometric Weather used one image for each value from -140° to 140° (which btw didn't work when user chose Kelvin as its unit).

We moved to create on-the-fly the bitmap files in Breezy Weather.

We had to bundle our own font because the default font lacks a bit of readability and can be unpredictable with some custom ROM with different font.

We also had to put a workaround to take care of a leading whitespace.

And here is the relevant part of code of Breezy Weather:
https://github.com/breezy-weather/breezy-weather/blob/v5.1.8/app/src/main/java/org/breezyweather/theme/resource/ResourceHelper.kt#L153-L178

Good luck! :)

@LeftyDextrous
Copy link
Author

Oh my gosh I love the open source community

@davidtakac
Copy link
Owner

Thank you Julien, you are very kind. I love what you've done with Breezy Weather. And thank you for sharing your on-the-fly temperature icon logic. It is surprisingly simple 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants