clima icon indicating copy to clipboard operation
clima copied to clipboard

Widget on Home Screen

Open Kodmod opened this issue 2 years ago • 4 comments

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 avatar Mar 24 '22 18:03 Kodmod

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.

triallax avatar Mar 25 '22 13:03 triallax

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.

Kodmod avatar Mar 26 '22 05:03 Kodmod

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.

triallax avatar Mar 26 '22 10:03 triallax

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...

Kodmod avatar Mar 27 '22 06:03 Kodmod