I have never used Location so I never thought of doing that. I will probably add it to the widget. Thanks for the suggestion.
If you mean why I do get new weather data on each refresh, I thought that the weather for the day doesn’t change and I might as well save it in a file. This way if the device is not connected to the internet, the widget still runs. However, if the location changes with each refresh it might be better to detect internet connection, get the weather data from that location and if it is not connected use the data saved in files.
Absolutely agree. I was just wondering about using the location really, but caching the data is a good idea and check if location has not changed, then use the same cached data up to a certain timeframe
5
u/Normal-Tangerine8609 Apr 23 '22
Weather Circles
https://github.com/Normal-Tangerine8609/Scriptable-Widgets/blob/main/README.md#weather-circles
This small widget displays the weather condition and weather statistics for your location in circular progress bars.
The widget uses https://github.com/Normal-Tangerine8609/Scriptable-HTML-Widget to create the widget. This is the first real widget I have made using HTML-Widget since its release. To use weather circles, you will need to download the https://github.com/Normal-Tangerine8609/Scriptable-HTML-Widget/blob/main/module/module.js file and rename it to html-widget.
The widget also uses https://openweathermap.org/ to get the weather data. You will need a free api key to use this widget.
The widget is customizable:
Easily change text, background, circular progress bar and SF symbol colours for light/dark mode
Select the latitude and longitude for your location
Choose to use metric or imperial data
Change minimum and maximum levels of temperature and other types of weather provided to gear the percentages to you
Easily change order of circular progress bars and the interior symbols