Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Widget on Home Screen #275

Open
Kodmod opened this issue Mar 24, 2022 · 4 comments
Open

Widget on Home Screen #275

Kodmod opened this issue Mar 24, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Kodmod
Copy link

Kodmod commented Mar 24, 2022

Is your feature request related to a problem? Please describe.
I'd like to view the weather when I unlock the phone.

Describe the solution you'd like
Have a widget that displays the current weather and weekly forecast, and updates only when the widget is tapped (for privacy). The widget's location can be specified on creation.
image

@Kodmod Kodmod added the enhancement New feature or request label Mar 24, 2022
@triallax
Copy link
Member

and updates only when the widget is tapped (for privacy)

How does that increase privacy? You're going to have to make API calls to OpenWeatherMap either way, just at different times and frequencies.

@Kodmod
Copy link
Author

Kodmod commented Mar 26, 2022

It's better for privacy because the alternative would be to have it run in the background and poll the weather at regular intervals. If it only updates when you tap on the widget, you have control over:

  1. The time

  2. The IP (by only polling when a VPN is active)

  3. Battery drain

Come to think of it... It might be useful to have proxy setting within the app. Such that all communication always goes through the specified proxy.

@triallax
Copy link
Member

triallax commented Mar 26, 2022

That's a fair point, but having a weather poll every 10 minutes is likely going to have a negligible effect on battery.

Come to think of it... It might be useful to have proxy setting within the app. Such that all communication always goes through the specified proxy.

Feel free to open an issue for that.

In any case, I think it might be a bit too easy to tap the widget by mistake and refresh the weather, so I think it may be better to have a refresh button in the widget. Additionally, many people probably prefer the regular polling behavior, so I'm in favor of adding a setting for this.

Also, it may be easy to miss that the weather is outdated, so showing a warning when the weather hasn't been refreshed in a while might be a good idea.

@Kodmod
Copy link
Author

Kodmod commented Mar 27, 2022

In any case, I think it might be a bit too easy to tap the widget by mistake and refresh the weather, so I think it may be better to have a refresh button in the widget.

I don't think accidentally updating the weather is an issue, really. Some non-FOSS apps I've seen have a tiny button in a corner, making it somewhat difficult to tap. I guess this could be in the settings, where you can select whether tapping on widget refreshes the weather or opens the app.

Also, it may be easy to miss that the weather is outdated, so showing a warning when the weather hasn't been refreshed in a while might be a good idea.

I think so too, maybe have a last updated: time indicator somewhere with values like: now, 1 hour, ... n hours, 1 day, etc...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants