From 49ff92892fbe72fb392713dd213f3be8ac08a5d3 Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 1 Aug 2020 08:52:49 +0200 Subject: [PATCH] Warn user if he uses the sample value in the config for the apiid --- modules/default/weatherforecast/weatherforecast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index 3ff239ef..511d226f 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -103,7 +103,7 @@ Module.register("weatherforecast", { getDom: function () { 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 appid in the config for module: " + this.name + "."; wrapper.className = "dimmed light small"; return wrapper;