Exemplo n.º 1
0
def upload_zq(csv_filename):
    data = zeo_csv_parser.get_zq(csv_filename)
    sense_helpers.initSense()
    sensor_id = sense_helpers.createSensorOnce("zeo_zq",
                                               "zeo zq scores per night",
                                               "integer")
    sense_helpers.postData(sensor_id, data)
def upload_graph(csv_filename):

    data = zeo_csv_parser.get_graph(csv_filename)
    # print("test:"+json_str)
    sense_helpers.initSense()
    sensor_id = sense_helpers.createSensorOnce(
        "zeo_graph_30sec", "zeo value for every 30 seconds (0:undefined, 1:Wake, 2:REM, 3:Light, 4:Deep)", "integer"
    )
    sense_helpers.postData(sensor_id, data)
Exemplo n.º 3
0
def upload_graph(csv_filename):

    data = zeo_csv_parser.get_graph(csv_filename)
    # print("test:"+json_str)
    sense_helpers.initSense()
    sensor_id = sense_helpers.createSensorOnce(
        "zeo_graph_30sec",
        "zeo value for every 30 seconds (0:undefined, 1:Wake, 2:REM, 3:Light, 4:Deep)",
        "integer")
    sense_helpers.postData(sensor_id, data)
def upload_zq(csv_filename):
    data = zeo_csv_parser.get_zq(csv_filename)
    sense_helpers.initSense()
    sensor_id = sense_helpers.createSensorOnce("zeo_zq", "zeo zq scores per night", "integer")
    sense_helpers.postData(sensor_id, data)