May 202016

I was recently introduced to Cayenne by a member of the Cayenne team. The concept behind Cayenne is to make creating Internet of Things applications much easier for new users just starting on the Pi.
The interface allows dragging and dropping of components, scheduling, and configuring triggers for events all through a web interface!

You can read more about the Cayenne Architecture at their documentation pages.

Now, onto actually playing with Cayenne!

After signing up to Cayenne, you’re presented with a screen directing you to power on your Raspberry Pi and make sure it’s connected to the internet.
Setting Up Cayenne

Clicking on next then takes you to a page which helps you install Cayenne on the Pi.

Gives you an easy and a hard option.

Gives you an easy and a hard option.

In the spirit of the Pi, I’ve chosen the terminal method of installing Cayenne.
Installing on the Pi

Installing takes a little while – about 15 minutes on my old Raspberry Pi Model B.

After installing, the Pi will automatically reboot, and then you will be able to see the Pi’s stats on the dashboard/Overview tab of Cayenne.
The gauges are drag and droppable so you can rearrange the boxes as you wish.

What you first see

What you first see

The Overview screen also lets you access the Remote Access functionality, Reboot, or Shut down the Pi.
Remote Access didn’t seem to work for me on my Linux Desktop.

Clicking on the Cpu, RAM, or Storage sensors on the left hand menu enables you to change the widget type and name of the widget in the overview, as well as change the thresholds at which the colours change.
Modifying the Widgets

The next tab along – GPIO – shows you the current GPIO configuration of the Pi, and lets you toggle the GPIO pins on the Pi between In and Out modes.

My Pi's current GPIO Configuration

My Pi’s current GPIO Configuration

On the Configure tab, you can see your Raspberry Pi’s current configuration. You can also enable or disable the Device Tree, SPI, I2C, and Serial functionality of the Pi.

Configuring The Pi

Configuring The Pi

Clicking on the Plus button at the top of the page lets you start building your first project.

I've called it "First Project"!

I’ve called it “First Project”!

Once you’ve started a new project, you’re presented with a blank dashboard with the ability to drag widgets from the menu on the left onto the dashboard.

I've dragged some widgets onto the dashboard

I’ve dragged some widgets onto the dashboard

On the Scheduling Tab, you’re given the option to add a new event, which can then perform actions such as Reboot or Shutdown.

Creating a new Event

Creating a new Event

On the Triggers & Alerts page, you can create triggers based on Sensors on the Pi itself, e.g. CPU Utilisation, or the triggers can be based on devices connected to the Raspberry Pi, e.g. Temperature Sensors, Light sensors, etc.

Based on the trigger, a notification can be sent out via Email, or Text message.

Creating a new trigger

Creating a new trigger

So that’s how far I got tonight playing with Cayenne. I haven’t set up any sensors or anything on my Pi yet, so my next foray into Cayenne will start involving IoT-ish things and some more electronic funtimes!

Stay tuned!


 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.