X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/35b005a713dfc2160b9b887ab1fa37668a0bb504..4d0eef893a499d6078a60b8b703cef05e95c1092:/web/seepark_web.py diff --git a/web/seepark_web.py b/web/seepark_web.py index 59e0c8b..b4c7749 100644 --- a/web/seepark_web.py +++ b/web/seepark_web.py @@ -262,6 +262,18 @@ def openweathermap_city(version, cityid): return jsonify(result) +@app.route('/api//currentairtemperature') +def currentair(version): + value, timestamp = currentairtemperature(cityid) + return jsonify({"value": value, "timestamp": timestamp}) + + +@app.route('/api//currentwatertemperature') +def currentwater(version): + value, timestamp = currentwatertemperature(mainsensor) + return jsonify({"value": value, "timestamp": timestamp}) + + @app.route("/") def index(): airvalue, airtime = currentairtemperature(cityid)