Thanks to Kevin McDermott bigkevmcd for the intial project node-rfxcom
rfxcom depends on the serialport module.
npm install rfxcomdeceode
The only dependency is serialport 1.0.6+.
var rfxcom = require("rfxcomdecode"); rfxcom.on("open", function () { rfxcom.on('data', function(dataanalyse) { console.log('[RFXCOM] Data : ' + dataanalyse.toString()); }); /* dataanalyse is composed : .raw .length .packetType .subType .seqNbr .extra .exist .str_packetType .str_subType .analyse ... .toString() */ }); rfxcom.on("close", function () { console.log('[RFXCOM] Closed'); }); rfxcom.on("end", function () { console.log('[RFXCOM] Connection close'); }); rfxcom.on("error", function (data) { console.log('[RFXCOM] Error : '+data); }); rfxcom.on("status", function (data) { console.log('[RFXCOM] Status : '+data); }); rfxcom.on("raw", function (data) { console.log('[RFXCOM] RAW : '+data); }); rfxcom.open('/dev/ttyUSB0');