Pca9685

kindly tell me where to run this code example?

on your pi terminal, run this command:

git clone https://github.com/myDevicesIoT/Cayenne-MQTT-Python
cd Cayenne-MQTT-Python
python setup.py install

Once done navigate to example folder and open Example-03-CayenneClient.py. Add your MQTT credentials which you will get when you add a new Bring Your Own thing device on the cayenne dashboard.

1 Like

while running ```
python setup.py install

"Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.
"

Use sudo python setup.py install

ys it is done know how to navigate to example folder and open Example-03-CayenneClient.py?

cd examples
sudo nano Example-03-CayenneClient.py
1 Like

I have write my MQTT ID, USER NMAE and password their know what next?

Save, exit and run the file: sudo python Example-03-CayenneClient.py

please tell me how I can save and exit this in terminal

To save, hold the control key down and type x then y. It will ask you for a filename (and give you a default if you opened a file) and then save it.
Go through this and first get familiar with terminal http://cs.colby.edu/maxwell/courses/tutorials/terminal/

1 Like