X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/39baae7114fe1f630ced6750e9648728c4a2d525..3d8af53f1b0fde15ccb2ec381f4f907648f1d35a:/openwrt-web/meteo/meteo.js?ds=sidebyside 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];