From 76b578635fd6d14dd46b1614ffe416def5c464d3 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sat, 27 Aug 2022 15:44:44 +0300 Subject: [PATCH] Updated Information Widgets (markdown) --- Information-Widgets.md | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/Information-Widgets.md b/Information-Widgets.md index d3d532a..66642de 100644 --- a/Information-Widgets.md +++ b/Information-Widgets.md @@ -50,23 +50,30 @@ Which produces something like this, Screenshot 2022-08-27 at 2 52 20 AM -## Weather +## WeatherAPI -The weather widget uses the weatherapi.com API, so you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key (free tier is more than enough). - -The widget is configured inside of the `widgets.yaml` file. +The free tier is all thats required, you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key. ```yaml -- weather: - latitude: 49.947279 - longitude: 24.223126 - units: metric - apiKey: yourweatherapidotcomkey - cache: 5 +- weatherapi: + label: Kyiv # optional + latitude: 50.449684 + longitude: 30.525026 + units: metric # or imperial + apiKey: yourweatherapikey + cache: 5 # Time in minutes to cache API responses, to stay within limits ``` -`latitude` and `longitude` are for the location you'd like the weather report to be for. +## OpenWeatherMap -`units` can be either `metric` for celsius or `imperial` for fahrenheit. +The free tier is all thats required, you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key. -`cache` is how long, in minutes, to cache the API response for. This allows you to stay well within the free tier API limits. \ No newline at end of file +```yaml +- openweathermap: + label: Kyiv #optional + latitude: 50.449684 + longitude: 30.525026 + units: metric # or imperial + apiKey: youropenweathermapkey + cache: 5 # Time in minutes to cache API responses, to stay within limits +```