We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41ae12 commit 236fbf8Copy full SHA for 236fbf8
2 files changed
config.yml.default
@@ -1,6 +1,9 @@
1
luftdaten:
2
enabled: true
3
4
+ # Override the serial derived from the CPU
5
+ # sensor: 012345
6
+
7
influxdb:
8
enabled: false
9
url: 'http://example.com:8086/write?precision=s&db=sensors'
main.py
@@ -134,7 +134,7 @@ def run():
134
m.sendInflux()
135
136
137
-sensorID = "raspi-" + getSerial()
+sensorID = config['luftdaten'].get('sensor') or ("raspi-" + getSerial())
138
starttime = time.time()
139
140
while True:
0 commit comments