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

@@ -14,6 +14,13 @@ WeatherProvider.register("ukmetoffice", {
// But for debugging (and future alerts) it would be nice to have the real name.
providerName: "UK Met Office",
// Set the default config properties that is specific to this provider
defaults: {
apiBase: "http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/",
locationID: false,
apiKey: ""
},
units: {
imperial: "us",
metric: "si"