The service restart seems to reestablish the connection:
logs as follows (cntrl C to stop the reporting after a while)
pi@raspberrypi : ~ $ sudo service myDevices restart
pi@raspberrypi : ~ $ tail -f /var/log/myDevices/cayenne.log
self.sensorsClient = sensors.SensorsClient()
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 56, in init
self.InitCallbacks()
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 128, in InitCallbacks
sensor.setCallback(self.OnSensorChange, device)
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/devices/digital/helper.py”, line 51, in setCallback
self.gpio.setCallback(self.channel, callback, data)
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/devices/digital/gpio.py”, line 345, in setCallback
with open(self.getEdgeFilePath(channel), ‘w’) as f:
PermissionError: [Errno 13] Permission denied: ‘/sys/class/gpio/gpio11/edge’
2021-10-26 20:32:20 - myDevices - INFO - Connecting to mqtt.mydevices.com:8883
2021-10-26 20:32:20 - myDevices - INFO - Connected with result code 0
2021-10-26 20:32:23 - myDevices - INFO - GPIO - Native added
2021-10-26 20:32:24 - myDevices - INFO - Executing regular download test for network speed
2021-10-26 20:32:24 - myDevices - INFO - Temperature - DS18B20(slave=28-0416b0bb7cff) 0416b0bb7cff added
2021-10-26 20:32:24 - myDevices - INFO - DigitalSensor - DigitalSensor CrwxFnrpGF6oEvM added
2021-10-26 20:32:24 - myDevices - INFO - DigitalSensor - DigitalSensor IH3uMEKJyFJEtKz added
2021-10-26 20:32:24 - myDevices - INFO - Enabled plugins: dict_keys()
2021-10-26 20:32:25 - myDevices - INFO - Monitoring real-time state changes
2021-10-26 20:32:25 - myDevices - INFO - Send changed data: [{‘dev:CrwxFnrpGF6oEvM’: 1}, {‘sys:gpio:11;value’: 1}, {‘dev:IH3uMEKJyFJEtKz’: 0}, {‘sys:gpio:17;value’: 0}]
2021-10-26 20:32:28 - myDevices - ERROR - Failed to get sensor data: Temperature 0416b0bb7cff
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 322, in SensorsInfo
value = self.CallDeviceFunction(func)
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 269, in CallDeviceFunction
response = value_type(func.format % result)
ValueError: invalid literal for int() with base 10: ‘0.00’
2021-10-26 20:32:28 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:32:30 - myDevices - INFO - Send system info: [{‘sys:os:name’: ‘raspbian’}, {‘sys:os:version’: ‘10’}, {‘agent:version’: ‘2.0.4.280’}, {‘sys:pwr:reset’: 0}, {‘sys:pwr:halt’: 0}, {‘sys:i2c’: 1}, {‘sys:spi’: 1}, {‘sys:uart’: 1}, {‘sys:1wire’: 1}, {‘sys:devicetree’: 1}]
2021-10-26 20:32:33 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 100.0}, {‘sys:cpu;temp’: 44.388}, {‘sys:ram;usage’: 217239552}, {‘sys:storage:/;usage’: 3583385600}, {‘sys:net;ip’: ‘192.168.1.55’}, {‘dev:CrwxFnrpGF6oEvM’: 1}, {‘dev:IH3uMEKJyFJEtKz’: 0}] + sys:gpio
2021-10-26 20:32:42 - myDevices - ERROR - Failed to get sensor data: Temperature 0416b0bb7cff
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 322, in SensorsInfo
value = self.CallDeviceFunction(func)
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 269, in CallDeviceFunction
response = value_type(func.format % result)
ValueError: invalid literal for int() with base 10: ‘0.00’
2021-10-26 20:32:42 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:32:45 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 1.1}, {‘sys:cpu;temp’: 42.774}, {‘sys:ram;usage’: 207003648}, {‘sys:storage:/;usage’: 3583115264}, {‘sys:net;speedtest’: 1.2618806059045917}]
2021-10-26 20:32:57 - myDevices - ERROR - Failed to get sensor data: Temperature 0416b0bb7cff
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 322, in SensorsInfo
value = self.CallDeviceFunction(func)
File “/usr/local/lib/python3.7/dist-packages/myDevices-2.0.4-py3.7.egg/myDevices/sensors/sensors.py”, line 269, in CallDeviceFunction
response = value_type(func.format % result)
ValueError: invalid literal for int() with base 10: ‘0.00’
2021-10-26 20:32:57 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:33:00 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 3.2}, {‘sys:ram;usage’: 207114240}]
2021-10-26 20:33:12 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:33:14 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 9.4}, {‘sys:ram;usage’: 207220736}, {‘sys:storage:/;usage’: 3583123456}, {‘dev:0416b0bb7cff’: 20.75}]
2021-10-26 20:33:27 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:33:30 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 7.9}, {‘sys:cpu;temp’: 43.312}, {‘sys:ram;usage’: 207200256}, {‘sys:storage:/;usage’: 3583123456}, {‘sys:net;ip’: ‘192.168.1.55’}, {‘sys:net;speedtest’: 1.2618806059045917}, {‘dev:0416b0bb7cff’: 20.75}, {‘dev:CrwxFnrpGF6oEvM’: 1}, {‘dev:IH3uMEKJyFJEtKz’: 0}] + sys:gpio
2021-10-26 20:33:42 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:33:45 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 3.5}, {‘sys:cpu;temp’: 42.774}, {‘sys:ram;usage’: 207196160}, {‘sys:storage:/;usage’: 3583127552}]
2021-10-26 20:33:57 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:34:00 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 7.6}, {‘sys:ram;usage’: 207310848}, {‘sys:storage:/;usage’: 3583131648}]
2021-10-26 20:34:08 - myDevices - INFO - Send changed data: [{‘dev:CrwxFnrpGF6oEvM’: 0}, {‘sys:gpio:11;value’: 0}]
2021-10-26 20:34:11 - myDevices - INFO - Send changed data: [{‘dev:IH3uMEKJyFJEtKz’: 1}, {‘sys:gpio:17;value’: 1}]
2021-10-26 20:34:12 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 0, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:34:15 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 12.8}, {‘sys:cpu;temp’: 42.236}, {‘sys:ram;usage’: 207286272}, {‘dev:CrwxFnrpGF6oEvM’: 0}, {‘dev:IH3uMEKJyFJEtKz’: 1}, {‘sys:gpio:17;value’: 1}, {‘sys:gpio:11;value’: 0}]
2021-10-26 20:34:16 - myDevices - INFO - Send changed data: [{‘dev:CrwxFnrpGF6oEvM’: 1}, {‘sys:gpio:11;value’: 1}]
2021-10-26 20:34:27 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:34:30 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 2.1}, {‘sys:cpu;temp’: 42.774}, {‘sys:ram;usage’: 207273984}, {‘sys:storage:/;usage’: 3583135744}, {‘sys:net;ip’: ‘192.168.1.55’}, {‘sys:net;speedtest’: 1.2618806059045917}, {‘dev:0416b0bb7cff’: 20.75}, {‘dev:CrwxFnrpGF6oEvM’: 1}, {‘dev:IH3uMEKJyFJEtKz’: 1}] + sys:gpio
2021-10-26 20:34:42 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:34:45 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 6.2}, {‘sys:ram;usage’: 207265792}]
2021-10-26 20:34:57 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:35:00 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 7.5}, {‘sys:ram;usage’: 207257600}]
2021-10-26 20:35:12 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:0416b0bb7cff’, ‘value’: 20.75, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18B20’}, {‘channel’: ‘dev:CrwxFnrpGF6oEvM’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}, {‘channel’: ‘dev:IH3uMEKJyFJEtKz’, ‘value’: 1, ‘type’: ‘digital_sensor’, ‘unit’: ‘d’, ‘name’: ‘Digital Input’}]
2021-10-26 20:35:15 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 7.8}, {‘sys:ram;usage’: 207360000}, {‘sys:storage:/;usage’: 3583143936}]