X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/39baae7114fe1f630ced6750e9648728c4a2d525..fad63ef17f825df2d1a58cc64be8bb19fb8e561f:/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];