Log out
Current signal
Signals
Menu
...
+
Clone signal
My Signals
Menu
Current panel
Panels
Menu
...
+
My Panels
Menu
Scheme
Timeline
Map
<
>
Arduino
+ESP01
NodeMCU
ESP32
Linux
Raspbian
Java
Python
Web
Javascript
Set the commands on your linux
Set environment variable

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:

export CIRCUSTOKEN=your_token_here

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:

echo $CIRCUSTOKEN
Get the commands

Follow these steps to get the circus commands available in your machine.

  • Make a temporary directory and get in it
    sudo mkdir ~/temp
    cd ~/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*
It should be ready now

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"

circuswritesignal -k 2717 -n 100

You can read your signal value from CLI

For instance, if you would like to read the value on signal defined by key "2717"

circusreadsignal -k 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.

Linux libraries for Circus.
Name circusdebianlib_1.1-1.deb
Description Commands for linux CLI that implement API v1 from Circus Of Things.
Download circusdebianlib_1.1-1.deb
Hardware PC or any running Debian / Linux
Circus Experiments with Debian / Linux OS.
We have no experiments. Show us yours in contact section!