message = { | |
"device_id": get_mac_address(), | |
"time": datetime.now(timezone("UTC")), | |
"data": { | |
"temperature": payload_dht["temperature"], | |
"humidity": payload_dht["humidity"], | |
"lpg": payload_gas["lpg"], | |
"co": payload_gas["co"], | |
"smoke": payload_gas["smoke"], | |
"light": payload_light["light"], | |
"motion": payload_motion["motion"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment