-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
17 lines (13 loc) · 790 Bytes
/
config.py
File metadata and controls
17 lines (13 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Thingsboard platform credentials
PUBLISH_THINGSBOARD = True # change to False if not needed
THINGSBOARD_HOST = 'demo.thingsboard.io' # Thingsboard host address
ACCESS_TOKEN = '' # Your device Access Token of Thingsboard
PUBLISH_OPEN_SENSE_MAP = True # change to False if not needed
SENSEBOX_ID = '' # Your Sensebox Token
SENSEBOX_PM25_ID = '' # Your Sensebox PM25 Token
SENSEBOX_PM10_ID = '' # Your Sensebox PM10 Token
PM_USB = '/dev/ttyUSB0'
MEASURE_TIME = 15 # after x seconds the data will be published, to avoid traffic
MEASURE_INTERVAL = 2 # every x seconds PM will be meaured
DEVICE_NAME = 'MyRPI-PM_Sensor'
MEASURE_ON_START = True