X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/39baae7114fe1f630ced6750e9648728c4a2d525..refs/heads/master:/openwrt-web/meteo/meteo.js diff --git a/openwrt-web/meteo/meteo.js b/openwrt-web/meteo/meteo.js index 9060847..36ff690 100644 --- a/openwrt-web/meteo/meteo.js +++ b/openwrt-web/meteo/meteo.js @@ -25,7 +25,7 @@ function RefreshPageState() { for (var param in returnedData[sensor_id][sensor]) { sensor_path = sensor_id+"."+sensor+"."+param; name = properties["names"][sensor_path]; - if (! name.startsWith("-")) { + if ((! name.startsWith("-")) && (name != "undefined")) { value = returnedData[sensor_id][sensor][param]; if (! name) { name = sensor_path; } units = properties["units"][sensor_path];