seepark_web.py: move 'mainsensor' in ini to section webapp
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Aug 2018 01:44:27 +0000 (03:44 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Aug 2018 01:44:27 +0000 (03:44 +0200)
from section temperature which is used by seewasser.py to check all sensors,
and "mainsensor" is no a sensor name/file

web/seepark_web.py

index edde3749f03e42c3dd4e6b164e7aa2a77619dab1..72c74e7e6573f44999957daa382926aa2afa4676 100644 (file)
@@ -46,7 +46,7 @@ config = configparser.ConfigParser()
 config.read(os.environ['SEEPARKINI'])
 apikey = config.get('openweathermap', 'apikey')
 cityid = config.get('openweathermap', 'cityid')
-mainsensor = config.get('temperature', 'mainsensor')
+mainsensor = config.get('webapp', 'mainsensor')
 
 app = Flask(__name__)
 app.json_encoder = JSONEncoder