This commit is contained in:
2025-02-26 23:12:36 +01:00
commit 90f12c5cef
5 changed files with 284 additions and 0 deletions

12
example.py Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/env python
import time
from datetime import datetime
from CO2Meter import *
Meter = CO2Meter("/dev/hidraw0")
while True:
measurement = Meter.get_data()
measurement.update({'timestamp': datetime.now()})
print(measurement)
time.sleep(5)