コード例 #1
0
ファイル: send_data.py プロジェクト: Brutuski/Pi-Starbug
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
ファイル: send_data.py プロジェクト: Brutuski/Pi-Starbug
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
ファイル: send_data.py プロジェクト: Brutuski/Pi-Starbug
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()