diff --git a/changelog.md b/changelog.md index b29aebb..13f89a3 100644 --- a/changelog.md +++ b/changelog.md @@ -767,3 +767,4 @@ See https://github.com/Daveiano/weewx-wdc/compare/v3.3.0...580071ca175a03fe4924b - Added option to set default theme (light/dark/auto) GH-241 - Added per-month statistic tables GH-215 - Added `windRose_legend_show_units` to hide the units in the windRose legend, added `hide_tick_unit` for gauges GH-249 +- Added colored Temperature GH-243 diff --git a/install.py b/install.py index 8ab4033..9ba46b8 100644 --- a/install.py +++ b/install.py @@ -67,6 +67,7 @@ def __init__(self): "skins/weewx-wdc/dist/main.css", "skins/weewx-wdc/dist/main.js", "skins/weewx-wdc/dist/live-updates.js", + "skins/weewx-wdc/dist/colored-temperature.js", "skins/weewx-wdc/dist/assets/IBMPlexMono-Regular.woff2", "skins/weewx-wdc/dist/assets/IBMPlexMono-Regular.woff", "skins/weewx-wdc/dist/assets/IBMPlexSans-Regular.woff2", diff --git a/skins/weewx-wdc/includes/html-head.inc b/skins/weewx-wdc/includes/html-head.inc index a18c57e..58cf542 100644 --- a/skins/weewx-wdc/includes/html-head.inc +++ b/skins/weewx-wdc/includes/html-head.inc @@ -85,7 +85,11 @@ }, locale: "$get_locale()", time: $datetime.datetime.now().timestamp(), - defaultTheme: '$DisplayOptions.get("default_theme", "auto")' + defaultTheme: '$DisplayOptions.get("default_theme", "auto")', + color_temperature: $to_int($to_bool($DisplayOptions.get("outTemp_stat_tile_color", "False"))), + color_temperature_transparency: $DisplayOptions.get("outTemp_stat_tile_color_transparency", "0.5"), + color_temperature_min: $DisplayOptions.get("outTemp_stat_tile_color_min", "-20"), + color_temperature_max: $DisplayOptions.get("outTemp_stat_tile_color_max", "40"), }; diff --git a/skins/weewx-wdc/index.html.tmpl b/skins/weewx-wdc/index.html.tmpl index 411ae9f..9f2993d 100644 --- a/skins/weewx-wdc/index.html.tmpl +++ b/skins/weewx-wdc/index.html.tmpl @@ -1,4 +1,3 @@ - #errorCatcher Echo #encoding UTF-8 #attr $context = 'day' @@ -26,7 +25,6 @@ - #if $DisplayOptions.get('layout', 'alternative') == 'alternative' #include 'includes/body-alternative.inc' #else @@ -159,6 +156,10 @@ #include "includes/footer.inc" + #if $to_bool($DisplayOptions.get("outTemp_stat_tile_color", "False")) + + #end if + #if $to_bool($Extras['mqtt']['mqtt_websockets_enabled'])