Simple Python MQTT Topic Logger

The MQTT data logger logs data to all monitored topics to the same log files. If the data need to be split into topics then it will need to be done by the log analyser software.

Continue reading

Setting up the Sonoff Tasmota MQTT Switch

Normally the Sonoff switches don’t support MQTT but you can buy flashed devices that run the Tasmota firmware that does. The Sonoff-Tasmota firmware provides three interfaces: MQTT, web and serial that can be used for controlling the switch. In this tutorial I will cover basic setup of the Sonoff Tasmota MQTT Basic Switch and how to use MQTT to control and configure the switch.

Continue reading

Beginners Guide to Data and Character Encoding

When I first starting working with computers everything was in ASCII. However today working with networking protocols and network programming you will come across a variety of data and character encoding schemes. In this tutorial we will look at basic encoding schemes used on computers and in the second part of the tutorial we look at how data is sent over a network.

Continue reading

Using the Node-Red Function Node- Beginners Guide

The function node is used to run JavaScript code against the msg object. The function node accepts a msg object as input and can return 0 or more message objects as output. This message object must have a payload property (msg.payload), and usually has other properties depending on the proceeding nodes.

Continue reading

Using MongoDB Working Notes

If you’re new to mongoDB and are looking to use it on one of your IOT projects then you might find my working notes useful. Install – Manual links to install on multiple platforms How to Install mongoDB on Windows 10. The database files are stored in c:\data\db on Windows (default) and in the folder /var/lib/mongodb on Linux (Raspberry pi).

Continue reading

Public MQTT Brokers and Reserved Topics – Discussion Post

Preface This is a discussion post and these are currently my thoughts on this topic. I would be grateful for comments and feedback. Introduction MQTT is still in the early stages of deployment and currently is used only on private networks. However with the growth in the adoption of the MQTT protocol for information distribution the number of public brokers and topics will probably increase substantially just as happened with websites in the early days of the internet.

Continue reading

Installing and Starting Node-Red

Installing Node Red Node-Red is a node application and before you Install node red you will need to first install node. Here are the instructions: Installing Node on Windows Installing Node on Linux Using a Package Manager Then you can Install node red on Windows and Linux (including raspberry pi) using:

Continue reading