Moving default values regarding specific providers into the providers themselves

This commit is contained in:
buxxi
2021-01-23 11:21:56 +01:00
parent e2cfa24686
commit 41508931be
9 changed files with 68 additions and 14 deletions

View File

@@ -15,6 +15,15 @@ WeatherProvider.register("darksky", {
// Not strictly required, but helps for debugging.
providerName: "Dark Sky",
// Set the default config properties that is specific to this provider
defaults: {
apiBase: "https://cors-anywhere.herokuapp.com/https://api.darksky.net",
weatherEndpoint: "/forecast",
apiKey: "",
lat: 0,
lon: 0
},
units: {
imperial: "us",
metric: "si"