config.read(os.environ['SEEPARKINI'])
apikey = config.get('openweathermap', 'apikey')
cityid = config.get('openweathermap', 'cityid')
+mainsensor = config.get('temperature', 'mainsensor')
app = Flask(__name__)
app.json_encoder = JSONEncoder
@app.route("/")
def index():
airvalue, airtime = currentairtemperature(apikey, cityid)
- watervalue, watertime = currentwatertemperature('0316a21383ff') # config? mainwatertemp?
+ watervalue, watertime = currentwatertemperature(mainsensor)
return render_template(
'seepark_web.html',