diff --git a/main.py b/main.py index f53fd2b..06d6495 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ from net import ntp from net import Server from net import templates from net import util +from net.config import config from sensors import MCP9808 from sensors import WaterSensor @@ -66,6 +67,7 @@ class SensorServer(Server): return templates.render( f'www/{path or self.default_path}', + hostname=config['hostname'], datetime=util.datetime(), temperature=self.temperatureTextValue(), waterStatus=self.waterTextValue(), diff --git a/www/index.html b/www/index.html index 778179b..4b03860 100644 --- a/www/index.html +++ b/www/index.html @@ -1,7 +1,7 @@
-