Миграция с OpenWeatherMap на OpenMeteo в связи с отключением бесплатного API с 26...
[weathermon.git] / openwrt-web / meteo / archive.js
index 20aa7aa6bd25d735fad2cff4821110796b769796..a0850e46780c4eac639f4aeb65cb128892b086f9 100644 (file)
@@ -146,7 +146,7 @@ function drawGraph(graphData) {
           yAxes: [{
             scaleLabel: {
               display: true,
           yAxes: [{
             scaleLabel: {
               display: true,
-              labelString: properties["names"][sensor+"."+param],
+              labelString: properties["names"][devid+"."+sensor+"."+param] + ", " + properties["units"][devid+"."+sensor+"."+param],
               fontColor: properties["fonts"]["axes"]["color"],
               fontSize: properties["fonts"]["axes"]["size"],
               fontStyle: properties["fonts"]["axes"]["style"],
               fontColor: properties["fonts"]["axes"]["color"],
               fontSize: properties["fonts"]["axes"]["size"],
               fontStyle: properties["fonts"]["axes"]["style"],