add readBresserTempSensor and readHomaticIP
This commit is contained in:
parent
710eaa90e6
commit
d72fa874bd
@ -23,16 +23,13 @@ client = paho.Client(protocol=paho.MQTTv31) # * set a random string (max 23 cha
|
|||||||
client.connect(mqtt_broker, 1883, 60) # MQTT server address
|
client.connect(mqtt_broker, 1883, 60) # MQTT server address
|
||||||
|
|
||||||
#client.loop_start()
|
#client.loop_start()
|
||||||
|
|
||||||
process = os.popen('/usr/local/bin/rtl_433 -R 42 -R 03 -F json -T 65 -M time:utc:usec')
|
process = os.popen('/usr/local/bin/rtl_433 -R 42 -R 03 -F json -T 65 -M time:utc:usec')
|
||||||
|
|
||||||
processData = process.read().split('\n')
|
processData = process.read().split('\n')
|
||||||
|
|
||||||
|
|
||||||
print("processData: ")
|
print("processData: ")
|
||||||
print(processData)
|
print(processData)
|
||||||
|
|
||||||
|
|
||||||
for i in processData:
|
for i in processData:
|
||||||
print("i: ")
|
print("i: ")
|
||||||
print(len(i))
|
print(len(i))
|
||||||
|
Loading…
Reference in New Issue
Block a user