Warn user if he uses the sample value in the config for the apiid

This commit is contained in:
rejas 2020-08-01 08:52:49 +02:00
parent 904f5a2656
commit 49ff92892f

View File

@ -103,7 +103,7 @@ Module.register("weatherforecast", {
getDom: function () { getDom: function () {
var wrapper = document.createElement("div"); var wrapper = document.createElement("div");
if (this.config.appid === "") { if (this.config.appid === "" || this.config.appid === "YOUR_OPENWEATHER_API_KEY") {
wrapper.innerHTML = "Please set the correct openweather <i>appid</i> in the config for module: " + this.name + "."; wrapper.innerHTML = "Please set the correct openweather <i>appid</i> in the config for module: " + this.name + ".";
wrapper.className = "dimmed light small"; wrapper.className = "dimmed light small";
return wrapper; return wrapper;