#idea Node-red Thermostat

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
philip.mallon
Pre-kindergarten
Pre-kindergarten
Posts: 34
Joined: Fri Oct 31, 2014 12:32 pm
Contact:

#idea Node-red Thermostat

Post by philip.mallon » Thu Apr 14, 2016 2:27 pm

I've progressed well with Wio Link since I received it yesterday. I now have a thermostat program hosted on Beagleboard Green (BBG) with a Wio Link front end. The Wio Link is connected to a Grove Temperature and Humidly Sensor and a Grove LED. The BBG is connected to a Orvibo S20 wifi power switch that switches on when the temperature is more than 22 degC and switches off it it gets below 21 degC. The fan is a Japanese USB fan. I was able to construct the whole node-red program within an hour including completing the user interface on Chrome browser. I am very impressed with what has been delivered by Seeedo. Just need to improve performance with local hosting for a reduced latency. After testing the Wio Link app on both Android and iPad I found it easier to use on the iPad app and discovered that I had missed some functions on the Android but they were still there. Transferred the fully assembled APIs to a Windows PC where I completed the node-red program and added a call to the BBG's ubuntu shell with 'cron' polls for temperature and humidity every minute. Just extract the parameters for node-red: for humidity the 'get the humidity' function is simply"return {payload:msg.payload.humidity};" Just as a demo I have included the Wio Link 'sleep' function and this will come in handy latter when I use battery power in other projects. The wifi power switch uses 'udp protocol' and the sub flow is from the node-red library. Other nodes such as 'http request' implement the RESTful GET function. Turning on the LED and sleeping Wio Link is via a Curl functions on BBG's shell via the node-red 'exec node. Any other wifi switch could be used including 433MHZ RF power switches.

yexiaobo
Pre-kindergarten
Pre-kindergarten
Posts: 46
Joined: Tue Dec 11, 2012 10:53 am

Re: #idea Node-red Thermostat

Post by yexiaobo » Wed Apr 20, 2016 10:49 am

Nice Jobs!

If you can post an video will be better :)

Post Reply