Skip to content

Galen-Titanium/node-rfxcomdecode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-rfxcomdecode

Thanks to Kevin McDermott bigkevmcd for the intial project node-rfxcom

How to Use

rfxcom depends on the serialport module.

To install

  npm install rfxcomdeceode

The only dependency is serialport 1.0.6+.

To Use

	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');

About

Node.js client for decode RFXCOM RFXtrx433 device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published