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 wunderground.com 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.
Node-RED : Upgrading Currently we recommend the use of npm version 2 or 3, (4 is NOT recommended), please check which version you have installed by running the command npm -v before upgrading. If necessary run sudo npm i -g firstname.lastname@example.org hash -r If you have installed Node-RED as a global npm package, you can upgrade to the latest version with the following commands: sudo npm cache clean sudo npm update -g --unsafe-perm node-red To check for outdated nodes that are installed in the user directory you can: cd ~/.node-red npm outdated This will print a list of nodes that can be updated. npm update # to update all nodes, or npm update foo # to only update a node called foo You will then need to stop and restart Node-RED. If you upgrade node.js, for example from v0.10.x to v4.6.x, it is better to stop Node-RED, and then re-install as follows: sudo npm cache clean sudo npm install -g --unsafe-perm node-red You will also need to rebuild any nodes that have binary dependancies. cd ~/.node-red npm rebuild
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). What the Thingbox is NOT The ThingBox is not a (yet another) new home automation box. How to get a Thingbox Just download and install the ThingBox image file to a Raspberry-Pi, a tiny 35$ computer that you can buy in many shops. Why the Raspberry Pi? You need a full time running computer.
node-red/node-red-nodes Wiring your first Flow | 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. Click and drag the inject node anywhere on to the white canvas in the centre of the screen. Next we find our debug node which is listed under the "outputs" section. Drag the debug node on to the canvas near to your input node. Now you can see that the inject node is an input and therefore has a small grey circle on its right hand side. As you begin to drag you are creating a "wire" between the two nodes. It is worth noting that you can have multiple wires going in to a node. As soon as you change the canvas by adding in new nodes or adding/removing wires between nodes you will notice that the "Deploy" button at the top right of the canvas illuminates red. This opens up the nodes options panel.
Managing Node-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. The only thing you may need to change before saving is the directory where node-red is installed on your Pi. For those that have installed Node-Red in a different location just change the following line “cd /home/pi/node-red” to reflect the folder location where Node-Red is installed. #! #! Once you have pasted and updated the above script hit CTRL+X and then Y to save changes. sudo chmod +x /etc/init.d/node_red sudo chmod +x /etc/init.d/node_red Finally to ensure the script will start at boot and stop at shutdown we need to update the rc.d file. Thats it! cd ~/node-red/
tuanpmt/esp_mqtt Home Automation with Node Red, JeeNodes and Open Energy Monitor (Dom Bramley's Blog of Maximo and the 'Internet of Things') Jeenodes I discovered JeeNodes whilst searching for an easy and low cost way to implement a wireless arduino sensor network. The JeeNode is an open source arduino with a built-in 433 RFM12B radio. The radio is both cheaper than a Wifi shield, easier on batttery life and there are numerous of coding examples from Jeelabs and others to make them work. The RFM12B radio is relatively sophisticated with CRC checking, and acknowledgement mechanism and the ability to give Node's their own ID The JeeNode's default sketch is a test utility for the wireless radio - which allows commands to be sent via serial port and It is this mechanism I have used for the Node Red base station. The Open Energy Monitor project also uses the Jee Node libraries as the foundation - so their sensors will also connect to the network straight out the box. Building the network My home network is comprised of the following; Base Station Hardware: Raspberry PI JeeLink Base Station Software Sensors - N.B.