From ff825cd9284b83405a6e2b82a4247acb2903f35f Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Mon, 5 Sep 2022 20:17:05 +0300 Subject: [PATCH] Created Settings (markdown) --- Settings.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Settings.md diff --git a/Settings.md b/Settings.md new file mode 100644 index 0000000..d25d5a3 --- /dev/null +++ b/Settings.md @@ -0,0 +1,23 @@ +# Configuration + +The `settings.yaml` file allows you to define application level options. + + +## Providers + +The `providers` section allows you to define shared API provider options and secrets. Currently this allows you to define your weather API keys in secret. + +```yaml +providers: + openweathermap: openweathermapapikey + weatherapi: weatherapiapikey +``` + +You can then pass `provider` instead of `apiKey` in your widget configuration. + +```yaml +- weather: + latitude: 50.449684 + longitude: 30.525026 + provider: weatherapi +``` \ No newline at end of file