A plugin allowing the Cayenne Pi Agent to read data from a TMP36 sensor and display it in the Cayenne Dashboard.
- Rasberry Pi.
- TMP36.
- An analog-to-digital converter and its associated plugin, e.g. an MCP3XXX device.
- 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-tmp36.git
Install the ADC plugin following its installation instructions. This example uses an MCP3XXX device.
Specify the ADC device and channel number you are connecting the TMP36 to by modifying init_args
under TMP36
in the cayenne_tmp36.plugin
file.
The adc
value should be set to plugin_name:section
where plugin_name
is the name of the ADC plugin file name and section
is the section within that
file that defines the ADC extension. For example, cayenne_mcp3xxx:MCP
. The channel
value should be set to the channel on the ADC device that the
TMP36 is connected to.
Restart the agent so it can load the plugin.
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
.