You will need to set up the global environment variable CIRCUSTOKEN. This helps the server to recognize you as a valid user.
Place it at the end of your /etc/bash.bashrc file, like this:
Bear in mind that all is case sensitive here.
To find your token, log in the site, go to up-right corner photo and select account. Copy the token and substitute in the variable above.
The new variable won't be ready until you close your terminal and open a new one.
Check that everything is OK typing this:
Follow these steps to get the circus commands available in your machine.
- Make a temporary directory and get in it
sudo mkdir ~/temp
- Get the debian package with all you need from our site
sudo wget https://circusofthings.com/downloads/debian/circusdebianlib_1.1-1.deb
- Unpack it and let it be installed
sudo dpkg -i circusdebianlib_1.1-1.deb
- Give permissions to the new files to be executable by your user
sudo chmod 755 /usr/local/bin/circus*
You can write your signal value from CLI
For instance, if you would like to write a "100" value on signal defined by key "2717"
You can read your signal value from CLI
For instance, if you would like to read the value on signal defined by key "2717"
Of course, remember to use another signal rather than "2717" for which you are allowed to write or read.
Consider using the "-v" verbose option if you need a bit more of debug. Skip it if you want to embed the command in some pipelining.
|Description||Commands for linux CLI that implement API v1 from Circus Of Things.|
|Hardware||PC or any running Debian / Linux|