pimatic / rfcontroljs

nodejs modul with protocol support for different 433mhz switches and weather stations for the RFControl Arduino library.
GNU General Public License v3.0
49 stars 54 forks source link

Add weather12 for a Globaltronic GT-WT-01 temperature/humidity sensor #73

Closed hvdwolf closed 8 years ago

hvdwolf commented 8 years ago

This is the very first time I do something in pimatic and with coffeescript. Please check. This relates to forum post http://forum.pimatic.org/topic/989/gt-wt-01-thermo-humidity-sensor-protocol

hvdwolf commented 8 years ago

It took some changes and bugfixes but it functions completely on my local setup. I am absolutely sure about the weather12.js, but not 100% sure about the weather12.coffee

hvdwolf commented 8 years ago

I'm also fairly sure about the weather12.coffee now. I ran it through http://js2.coffee/ and it seems correct.

sweetpi commented 8 years ago

Looks good. Could you add a test case in https://github.com/pimatic/rfcontroljs/blob/master/test/lib-controller.coffee ?

hvdwolf commented 8 years ago

I added 3 sequences.