seepark_web.py: move 'mainsensor' in ini to section webapp
[chrisu/seepark.git] / 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