From 99bde7c69fb4adf34bfa5450293aec995bc7cb74 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 7 May 2015 17:38:46 +0200 Subject: NMS: Add info-text for temperature map This can also be used by other updaters. It doesn't look particularly good on "small" switches though.... --- web/nms.gathering.org/nms2/js/nms-map-handlers.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/nms.gathering.org/nms2/js/nms-map-handlers.js') diff --git a/web/nms.gathering.org/nms2/js/nms-map-handlers.js b/web/nms.gathering.org/nms2/js/nms-map-handlers.js index 9b2d44c..ddb50a1 100644 --- a/web/nms.gathering.org/nms2/js/nms-map-handlers.js +++ b/web/nms.gathering.org/nms2/js/nms-map-handlers.js @@ -232,11 +232,14 @@ function tempUpdater() { for (sw in nms.switches_now["switches"]) { var t = "white"; + var temp = ""; if (nms.switches_now["switches"][sw]["temp"]) { t = temp_color(nms.switches_now["switches"][sw]["temp"]); + temp = nms.switches_now["switches"][sw]["temp"] + "°C"; } setSwitchColor(sw, t); + switchInfoText(sw, temp); } } -- cgit v1.2.3