A plugin allowing the Cayenne Pi Agent to access Sense HAT data and display it in the Cayenne Dashboard.
- Rasberry Pi.
- Sense HAT. If you don't have an actual Sense HAT board you can also use the Sense HAT Emulator.
- Cayenne Pi Agent. This can be installed from the Cayenne Dashboard.
- Git.
From the command line run the following commands to install this plugin.
cd /etc/myDevices/plugins
sudo git clone https://github.com/myDevicesIoT/cayenne-plugin-sensehat.git
cd cayenne-plugin-sensehat
sudo python3 setup.py install
sudo service myDevices restart
If you do not have an actual Sense HAT board and would like to use the Sense HAT Emulator instead you will need to install and run the Emulator.
-
Install the Sense HAT Emulator.
sudo apt-get update sudo apt-get install python-sense-emu python3-sense-emu sense-emu-tools
-
Launch the Sense HAT Emulator from the Pi desktop.
-
Add this entry to the
SenseHAT Temperature
section in thesensehat.plugin
file:init_args={"use_emulator": true}
. -
Restart the Cayenne Agent.
sudo service myDevices restart
Temporary widgets for the plugin should now show up in the Cayenne Dashboard. You can make them permanent by clicking the plus sign.
NOTE: If the temporary widgets do not show up try refreshing the Cayenne Dashboard or restarting the agent again using
sudo service myDevices restart
.