RPICT and MQTT: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
==Using Python Script==
==Using Python Script==


In this setup the Raspberrypi where the RPICT is will be the MQTT broker. A script will run to convert the serial string from the RPICT into channel feed.
===Setup Mosquito broker===
Install Mosquitto using the commands below:
sudo apt install -y mosquitto mosquitto-clients
Enable the service to start at boot time:
sudo systemctl enable mosquitto.service




==Using Emonhub==
==Using Emonhub==

Revision as of 19:48, 31 May 2019


There are two ways to setup MQTT.
1/ Running a python script.
2/ Using Emonhub.

Using Python Script

In this setup the Raspberrypi where the RPICT is will be the MQTT broker. A script will run to convert the serial string from the RPICT into channel feed.

Setup Mosquito broker

Install Mosquitto using the commands below:

sudo apt install -y mosquitto mosquitto-clients

Enable the service to start at boot time:

sudo systemctl enable mosquitto.service


Using Emonhub