Allow changing between C and F for weather temp

This commit is contained in:
Svilen Markov
2024-04-29 16:29:11 +01:00
parent 78572a534b
commit ccdafcdfab
4 changed files with 23 additions and 4 deletions

View File

@@ -502,6 +502,7 @@ Example:
```yaml
- type: weather
units: metric
location: London, United Kingdom
```
@@ -516,11 +517,15 @@ Each bar represents a 2 hour interval. The yellow background represents sunrise
| Name | Type | Required | Default |
| ---- | ---- | -------- | ------- |
| location | string | yes | |
| units | string | no | metric |
| hide-location | boolean | no | false |
##### `location`
The name of the city and country to fetch weather information for. Attempting to launch the applcation with an invalid location will result in an error. You can use the [gecoding API page](https://open-meteo.com/en/docs/geocoding-api) to search for your specific location. Glance will use the first result from the list if there are multiple.
##### `units`
Whether to show the temperature in celsius or fahrenheit, possible values are `metric` or `imperial`.
##### `hide-location`
Optionally don't display the location name on the widget.