-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.py
49 lines (45 loc) · 1.05 KB
/
device.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# per-device numbers and names
ONEWIRE_CONFIG = {
"data_pin": 22,
"sensors": {
"288f8746b1220767": {"name": "bed1"},
"28ffdb8483160410": {"name": "bed3"},
"288d85b8b022061b": {"name": "bed4"},
"288b8562b1220746": {"name": "bed5"},
"2834e359b1220734": {"name": "bed2"},
},
}
I2C_CONFIG = {
"bus": {
"bus_number": 0,
"sda_pin": 4,
"scl_pin": 5
},
"sensors" : [
{ "bme280":
{ "address": 119,
}
}
],
"displays" : [
{ "ssd1306" :
{
"address": 60,
"width": 128,
"height": 32,
# value of 8 useful in split color displays
"second_line_padding": 8,
}
}
]
}
APP_CONFIG = {
"sensor_read_interval_seconds": 30,
"mqtt_client_debug": False,
"blink_onboard_led": True,
"heartbeat_onboard_led": True,
"enable_hardware_watchdog": True,
"device_name": "picow0",
"display_temperature_readings": True,
# "unique_id"
}