]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/seepark_web.py
use sensor_id and sensor_name from database
[chrisu/seepark.git] / web / seepark_web.py
index 74daa2fdc248ecb7625818ad22dd01b2fa0be295..910f0a9110912a50e0b03fdc0cacecc894d7d0d9 100644 (file)
@@ -4,10 +4,10 @@ app = Flask(__name__)
 @app.route("/data")
 def data():
     data = {
 @app.route("/data")
 def data():
     data = {
-        'water_temperature': [20, 19, 20, 21, 20, 21],
-        'water_temperature_x': ['2018-05-20', '2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-27'],
-        'air_temperature': [27, 32, 26, 29, 30, 31],
-        'air_temperature_x': ['2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-25', '2018-05-27'],
+        '0316a2193bff': [20, 19, 20, 21, 20, 21],
+        '0316a2193bff_x': ['2018-05-20', '2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-27'],
+        '0316a21383ff': [27, 32, 26, 29, 30, 31],
+        '0316a21383ff_x': ['2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-25', '2018-05-27'],
         }
     return jsonify(data)
 
         }
     return jsonify(data)