Can not add any devices or widgets

?

What exactly is that?

# Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
MQTT_USERNAME  = "MQTT_USERNAME"
MQTT_PASSWORD  = "MQTT_PASSWORD"
MQTT_CLIENT_ID = "MQTT_CLIENT_ID"

I do have these information. But what should I do with them?

have you added them in?? you need to get them from the cayenne dashboard. go to "add new —> device/widgets —> arduino " here you will get the MQTT credentials. Copy and paste it in your code.

I don’t have an Arduino only Rhaspberry. When I add a new Rasp I have to install my devices per terminal. No credentials here

can you follow this steps and get the credentials. You can change the change from arduino to raspberry pi later. this steps are to get credentials and add a a device to cayenne dashboard.

Ok I have the credentials

Let me guess: Ihave to put these credentials in all the client.py files in the mqtt folder

in the cayenne-mqtt folder, navigate to example folder and open Example-03-CayenneClient.py you need add it in this example.

done.

when I let it run it says:

File “Example-03-CayenneClient.py”, line 7
MQTT_USERNAME = xxxxxxxx-xxxx-xxxa-xxxx-xxxx
^
SyntaxError: invalid syntax

The aerrow should be underneath the a but I think you figured it already

you need to add “” example: “xxxxxx-xxx-xxx”

Ok, now it says:

File “Example-03-CayenneClient.py”, line 19, in
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID, loglevel=logging.INFO)
TypeError: begin() got an unexpected keyword argument ‘loglevel’

run sudo python3 setup.py install
and run the code with python3

I already have python 3. I just run it in the shell of Thonny and it works. How can I tell my OS to use it in the console?

you can remove this lines from code import logging and , loglevel=logging.INFO

It works! And now?

add the ads1015 code to it and send the ads data to cayenne using client.virtualWrite(1, x) where x is the ads data

Add the code to what?