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 edde374..72c74e7 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