コード例 #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)
コード例 #2
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)
コード例 #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)
コード例 #4
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)