示例#1
0
def process_system_temperature_data():
    system_temperature_stash = Stash("system_temperature")
    if system_temperature_stash.data:
        data_created = holly.send_bulk_system_temperature_data(system_temperature_stash.data)
        if data_created:
            system_temperature_stash.empty()
            return
    system_temperature_stash.close()
示例#2
0
def process_temperature_data():
    temperature_stash = Stash("indoor_temperature")
    if temperature_stash.data:
        data_created = holly.send_bulk_temperature_data(temperature_stash.data)
        if data_created:
            temperature_stash.empty()
            return
    temperature_stash.close()
示例#3
0
def process_humidity_data():
    humidity_stash = Stash("indoor_humidity")
    if humidity_stash.data:
        data_created = holly.send_bulk_humidity_data(humidity_stash.data)
        if data_created:
            humidity_stash.empty()
            return
    humidity_stash.close()