Working with JSON Data And JavaScript Objects in Node-Red

JSON is popular format for encoding data sent over the Internet, and also stored in files. In computing, JavaScript Object Notation (JSON) is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). –wiki

Continue reading

Using the Node Red Status Node

In Node red any node can report status information in the visual editor. The screenshot below shows the mqtt node. It shows a green circle to indicate that it is connected and the text connected underneath the node.

Continue reading

MQTT and Raspberry Pi GPIO

The Raspberry Pi has 40 General purpose Input/output Pins (GPIO) that can be used for controlling external hardware. There are  a number of add-on boards called hats which plug into these pins and provide various sensors. The most common one being the sense hat.

Continue reading

Node-Red HTTP Request Node for Beginners

The node-red http request node is a core node and can be used for making http requests. It can be used for. Retrieving web pages from a website Making API Request Sending and receiving JSON data to a website or API. etc

Continue reading

Node-Red MQTT Data and Topic Logger

This is a data and topic logger similar to the python data and topic loggers that can be used for logging MQTT data to log files either as a single file containing multiple topics or multiple files based on topic. It is controlled using a node-red dashboard making it much easier to use than the python loggers.

Continue reading

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 ( American Standard Code for Information Interchange ) 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