Node-RED operates around the notion of a "flow". This repository contains examples of many flows that "know" about the Wink API. Once you have one or more flows deployed in your Node-RED process, you can make use of that data.
This application is Node-Red based app which helps joining together various systesms for better home automation experience:
- Wink http://winkapp.com (HA system with extensive list of supported devices)
- SmartThings http://smartthings.com (Samsung HA system with extensive list of supported devices)
- Lifx http://lifx.com (color wifi enabled ligjt bulbs)
- IFTTT http://ifttt.com (connecting services and more together)
- Forecast.io http://forecast.io (one of the best weather forecast systems)
- Blue Iris http://blueiris.com (inexpensive solution for video monitoring)
- BloomSky http://bloomsky.com (community based weather station and sky camera)
- Several ip cameras (Foscam, D-link, Samsung)
- OwnTracks app support for geofencing and location sharing http://owntracks.org
written in JavaScript and powered by Node-Red and Node.js it allows to build additional functionality like advanced scheduling very easy. It is also a fun way to learn functional and event based programming and some modern technologies at the same time enchancing your home automation experience.
Use following HOWTO for instructions on how to create BlueMix node.js container with node red as well as how to configure application for initial run,
use following Readme for instructions on how to install docker image on raspberry pi or local modified node-red instance using just single command and also Optional, but highly recommended instruction on how to obtain SSL certificate and protect your local node-red instance.
Once you have Node-RED running, you can deploy your flows described below To deploy a flow, point your browser to your Node-RED configuration page, e.g., [http://127.0.0.1:1880/]. Click on the three bars in the upper-right hand corner to get the menu, select "Import > Clipboard", cut-and-paste the contents of the Flow file into the pop-up window, and click OK. Then click on the "Deploy" button.
Please navigate to: Flows/Bluemix. In order for application to work you need to import following flows:
- Flows/Bluemix/winkCore.json - core flow that performs initial calls to wink servers in order to get access tocken, list of devices and subscribe itself for status updates from wink as well as other services. It also creates connection to weather api, ifttt, initialstate.com api bassed on your configuration settings.
- Flows/Bluemix/winkIntegration.json - creates entry points for IFTTT/tasker/etc.
- Flows/Bluemix/winkFreeboards.json - set of flows to generate freeboard dashboards
- Flows/Bluemix/tabletUI.json - set of flows to generate application User interface
All these flows works perfectly locally and in the cloud.Only exception for now is that local version will not be able to use IBM Cloudant DB as percistence layer. You will have to put all global variables in FunctionGlobalContext section of settings.js in /home/pi/.node-red. This will be addressed in the future but currently we are concentrated on cloud based version. Also you will need to setup port forwarding so your instance can be accessed from outside.
Brian created schedule flow that works with blue mix monitoring - check it here:[Flows/BMeissen Sample Flows](Flows/BMeissen Sample Flows)
Donations are always welcome. They will help us keep this project up and running and add support to more devices and services! you can use PayPal or google wallet.
- Timur Fatykhov: tfatykhov@gmail.com
- Brian Meissen: paypal@meissenation.com
There are many excellent cloud platforms as a service; if you really like another, perhaps you contribute a "HOWTO" for installing Node-RED and Freeboard?
Here is the HOWTO for how to use Freeboard with Node-RED and Wink.