Can not add any devices or widgets

Thank you for taking the time to submit your bug/issue! Please use the points below as a guide when submitting.

  • Device & model I am using: Raspberry Pi 4 Model B

  • What dashboard I am using: Web

  • I can not add any extensions. I have a ADS1015 connected to my Pi and it shows up when I do i2cdetect -y. I have also downloaded the plugin from github and moved it to the /etc/myDevices/plugins folder. Still all widgets are greyed out.
    The Prasberry Pi shows up in my Dashboard.

restart the agent sudo service myDevices restart and check the log if any error are there tail -f /var/log/myDevices/cayenne.log

Thank younso much for your help!. I did restart the agent as you said and this is the response:

pi@raspberry:~ $ sudo service myDevices restart
pi@raspberry:~ $ tail -f /var/log/myDevices/cayenne.log
2020-05-01 09:04:41 - myDevices - ERROR -
2020-05-01 09:04:41 - myDevices - INFO - Loaded sections:
2020-05-01 09:04:41 - myDevices - INFO - Enabled plugins: dict_keys()
2020-05-01 09:04:41 - 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}]
2020-05-01 09:04:42 - myDevices - INFO - Connected with result code 0
2020-05-01 09:04:42 - myDevices - INFO - Executing regular download test for network speed
2020-05-01 09:04:42 - myDevices - INFO - Sensors info:
2020-05-01 09:04:42 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 18.4}, {‘sys:cpu;temp’: 49.66}, {‘sys:ram;usage’: 723382272}, {‘sys:storage:/;usage’: 8259022848}, {‘sys:net;ip’: ‘192.168.178.33’}] + sys:gpio
2020-05-01 09:04:43 - myDevices - ERROR - TestDownload:<urlopen error [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)>
2020-05-01 09:04:43 - myDevices - INFO - Daemon failure handling None
2020-05-01 09:04:57 - myDevices - INFO - Sensors info:
2020-05-01 09:04:58 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 1.8}, {‘sys:cpu;temp’: 48.686}, {‘sys:ram;usage’: 715649024}]
2020-05-01 09:05:12 - myDevices - INFO - Sensors info:
2020-05-01 09:05:12 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 0.0}, {‘sys:cpu;temp’: 48.199}, {‘sys:ram;usage’: 703401984}]
2020-05-01 09:05:27 - myDevices - INFO - Sensors info:
2020-05-01 09:05:27 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 0.2}, {‘sys:ram;usage’: 703885312}]
2020-05-01 09:05:42 - myDevices - INFO - Sensors info:
2020-05-01 09:05:42 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 5.4}, {‘sys:cpu;temp’: 49.173}, {‘sys:ram;usage’: 767758336}, {‘sys:storage:/;usage’: 8250769408}, {‘sys:net;ip’: ‘192.168.178.33’}] + sys:gpio
2020-05-01 09:05:57 - myDevices - INFO - Sensors info:
2020-05-01 09:05:57 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 3.6}, {‘sys:cpu;temp’: 48.686}, {‘sys:ram;usage’: 812617728}, {‘sys:storage:/;usage’: 8250773504}]
2020-05-01 09:06:12 - myDevices - INFO - Sensors info:
2020-05-01 09:06:12 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 0.3}, {‘sys:cpu;temp’: 48.199}, {‘sys:ram;usage’: 742588416}]
2020-05-01 09:06:27 - myDevices - INFO - Sensors info:
2020-05-01 09:06:27 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 1.0}, {‘sys:ram;usage’: 746258432}]

when you restart the agent you should get something like this

2020-05-01 12:49:11 - myDevices - INFO - Connected with result code 0

2020-05-01 12:49:12 - myDevices - INFO - GPIO - Native added

2020-05-01 12:49:12 - myDevices - INFO - Loading plugin: /etc/myDevices/plugins/cayenne-plugin-ads1xxx/cayenne_ads1xxx.plugin

2020-05-01 12:49:12 - myDevices - INFO - Sections: ['ADS', 'ADS_CH0', 'ADS_CH1', 'ADS_CH2', 'ADS_CH3']

2020-05-01 12:49:12 - myDevices - INFO - Creating instance of ADS1115 for ADS

2020-05-01 12:49:12 - myDevices - INFO - Loading I2C modules

2020-05-01 12:49:12 - myDevices - INFO - Creating instance of AnalogInput for ADS_CH0

2020-05-01 12:49:12 - myDevices - INFO - Loaded sections: ['ADS', 'ADS_CH0', 'ADS_CH1', 'ADS_CH2', 'ADS_CH3']

2020-05-01 12:49:12 - myDevices - INFO - Enabled plugins: dict_keys(['cayenne_ads1xxx:ADS', 'cayenne_ads1xxx:0', 'cayenne_ads1xxx:1', 'cayenne_ads1xxx:3', 'cayenne_ads1xxx:2'])

2020-05-01 12:49:13 - myDevices - INFO - Executing regular download test for network speed

2020-05-01 12:49:13 - myDevices - INFO - Send system info: [{'sys:os:name': 'raspbian'}, {'sys:os:version': '9'}, {'agent:version': '2.0.4.280'}, {'sys:pwr:reset': 0}, {'sys:pwr:halt': 0}, {'sys:1wire': 1}, {'sys:spi': 1}, {'sys:i2c': 1}, {'sys:devicetree': 1}, {'sys:uart': 1}]

2020-05-01 12:49:13 - myDevices - INFO - Sensors info: []

2020-05-01 12:49:14 - myDevices - INFO - Send changed data: [{'sys:cpu;load': 22.8}, {'sys:cpu;temp': 41.698}, {'sys:ram;usage': 170803200}, {'sys:storage:/;usage': 4943765504}, {'sys:net;ip': '192.168.1.12'}, {'dev:cayenne_ads1xxx:0': 3.0517578125e-05}, {'dev:cayenne_ads1xxx:1': 9.1552734375e-05}, {'dev:cayenne_ads1xxx:3': 0.133209228515625}, {'dev:cayenne_ads1xxx:2': 0.11187744140625}] + sys:gpio

2020-05-01 12:49:28 - myDevices - INFO - Sensors info: []

2020-05-01 12:49:29 - myDevices - INFO - Send changed data: [{'sys:cpu;load': 0.0}, {'sys:cpu;temp': 40.084}, {'sys:ram;usage': 171143168}, {'dev:cayenne_ads1xxx:0': 0.177520751953125}, {'dev:cayenne_ads1xxx:1': 0.14691162109375}, {'dev:cayenne_ads1xxx:3': 0.16241455078125}, {'dev:cayenne_ads1xxx:2': 0.101287841796875}]

which clearly shows that the ads plugin has been loaded successfully and sending the ads data to cayenne. you have not added the plugin properly. Try adding again.

Hello I added the plugin again via github. I also restarted myDevices but it didn’t help. are there othersolutions?

Hello again. I checked the log and now it sais:

2020-05-18 08:23:52 - myDevices - INFO - Sensors info:
2020-05-18 08:23:52 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 5.8}, {‘sys:cpu;temp’: 53.069}, {‘sys:ram;usage’: 784748544}, {‘dev:cayenne_ads1xxx:0’: 0.14794921875}, {‘dev:cayenne_ads1xxx:2’: 0.1494140625}, {‘dev:cayenne_ads1xxx:3’: 0.1689453125}]

so there must be something

Good news. the 4 chanels show up on the dashboard. now I have to figure out a way to plot the measuring results

you can change it to chart by clicking on clog wheel on the widget to open the setting and changing the widget type to line chart.

Yes I found the tachometer and the chart. But although the console gives me readings, when I measure, the dashbouard does not.

what do you mean by dashboard does not? can you restart the service again and check.

The ADS1015 is again gone from my cayenne.log

check your connection between pi and ADS

Connection is good. I found it in the list doing i2cdetect and like I said, when I run apython program it gives me readingd

i guess you are familer with python. Use this library GitHub - myDevicesIoT/Cayenne-MQTT-Python: Python Library for Cayenne MQTT API and send the ads1015 to cayenne

how do I send the ads to cayenne?

send this reading using the cayenne library i shared above.

Hi

seems the problem is rooted much deeper. I installed the cayenne mqtt and ran the test.py it told me that:
Caught exception in on_connect: Connection failed, not authorized
So although I can access cayenne dashboard and the community I cannot connect to mqtt.
What am I doing wrong?

have you added the MQTT credentials?

No, but I’m on it.

I think I already did this. I have Cayenne-MQTT-Python in my /home/pi/ folder