background preloader



Related:  Node Red & DatabaseNode-Red

Raspberry Pi Hosting Node-Red Node-Red is great out of the box but it can be a bit manual to start, stop and run on boot. The following section will describe a simple init script to do all of the hard work for us. Firstly we create a new init.d file, which is essentially a script for starting, stopping and restarting services under Linux. sudo nano /etc/init.d/node_red sudo nano /etc/init.d/node_red Then copy and paste the following code in to the file.

Node-RED : Upgrading If you have installed Node-RED as a global npm package, you can upgrade to the latest version with the following command: sudo npm update -g --unsafe-perm node-red Upgrading from before Node-RED 0.10.4 In releases prior to 0.10.4, the default behaviour was to write user data into the Node-RED install directory. The ThingBox Project What is the Thingbox The ThingBox allows anyone to graphically create new unlimited applications interacting with connected objects from a simple web-browser. Dedicated to For non-technical people, this site provides in a single easy step a graphical interface to take fully advantage the Internet of Things. For technical people, the ThingBox is a ready to use device released under the WTFPL licence (the WTFPL is a very permissive license for software and other scientific or artistic works that offers a huge degree of freedom).

Node-RED : Installation Install Node.js Node-RED requires version 0.10.x of Node.js. Note: The most recent stable release of Node 0.12.x is not currently supported. You can get the latest supported version of Node 0.10.x from: Raspberry Pi Hosting Node-Red – Take the crap out of developing automation! – The Internet Of Things IOT - Hardware_Hacks This tutorial will document setting up Node-Red on your Raspberry Pi and getting some of your first automation tasks set up! Now I could harp on a good few hours about what Node Red is and how stupidly awesome it is however they say a picture tells a thousand words.. so below are a few thousand. So as you can see.. its graphical, its easy and its developed by cool guys at IBM..need I say more? Well probably so here is the official take on what Node Red actually is: A visual tool for wiring the internet of things

Websockets & Today’s web is more on the lines of demand and supply. A user request a page & the server dispatches it. After that the server is not aware who the client is (unless we maintain a session). For every other request from the same client to the same server, a new connection needs to be opened, every single time. Below is screenshot of page loading time of my blog’s home page using this tool This is a call stack for the first request that was fired from one of the pingdom servers/browsers to my blog. Node-RED The purpose of this flow is to give a early warning of overnight frosts, which for me as a keen gardener allows me to protect tender plants and prevent frost damage, but also to set my alarm clock 15 minutes earlier to clear my windscreen in the morning! It uses a Met Office weather model, which determines the likelyhood of frost by accessing windspeed, air temperature & cloud cover from for the forthcoming evening, and following analysis fires off a 'push' message via pushbullet at midday if frost is likely (could equally be Twitter or whatever). A free developers API key is required from to enable access to the XML data feed, and which is inserted where shown in the 'Get forecast' inject node.

Raspberry Pi Hosting Node-Red Before delving into the more advanced ways of using Node-Red it's worth understanding the fundamentals of how the systems works. I will now explain a simple "Hello World" setup using an inject node and a debug node. Firstly open up your instance of Node-Red and locate the inject node.