node-humix
v0.1.0
Published
Foundation for Humix-Sense modules
Downloads
5
Readme
Essentially, a Humix-Sense module communicate with other modules and the local controller using NATS-based pub/sub messaging modol : each module provide the information it collects by publishing 'event', while it also listen for 'command' to trigger actions the module supports.
This nodejs module provides an event-driven model to facilitate the creation of Humix-Sense modules. Basically, you need to proivde a config to specify
- the name of the module
- the commands the module accepts
- the event the module generates
- any child process the module depends upon ( optional )
The code could be found here : https://github.com/project-humix/node-humix