Back to categories

Category: "Node-RED"

Time Manipulation in Node-RED with Moment Janne Kemppainen |

Moment.js is a popular JavaScript library for parsing, validating, manipulating and displaying dates. The node-red-contrib-moment package is an adaptation of the library to Node-RED. In this post I'll share some examples that should jumpstart your journey with Moment.js.

Control a Samsung TV with Node-RED

Or, How to Make Your Girlfriend Mad

Janne Kemppainen |

Node-RED is such a versatile thing. Did you know that it can be even used to control a TV! Wouldn't it be nice to be able to restrict viewing time or force the TV to shut down on school nights? In theory you could even create your own remote controller.

In this post I'll show some examples that could inspire you to create your own flows. Even though the control nodes I am using are specific to Samsung TV's you should be able to adapt these designs to other manufacturer's models too.

Even if you don't really want to manage your TV programmatically you should still learn how to actually create some (potentially) useful logic with Node-RED.

Getting Started With Node-RED On a Raspberry Pi Janne Kemppainen |

Node-RED is a super useful tool that lets you create integrations between hardware devices, APIs and online services. Everything happens inside a web UI where you can add function nodes and connect them graphically to create more complicated logic. This flow based programming approach makes Node-RED more accessible to beginners and faster to prototype with.

Node-RED runs on top of Node.js and there are many community-made libraries that you can import to your project to create complex flows. And if you know JavaScript you can write custom functions to suit your needs.

In this blog post we will go through installing Node-RED on a Raspberry Pi and the basics of creating logic flows.