node package manager

node-vantage

node-vantage

node-vantage is a dead simple Davis Vantage driver for Node.js.

Installation

npm install node-vantage

How to use

var Driver = require("node-vantage");
var vantage = new Driver();
 
vantage.on("connect", function(error) {
    if (!error) {
        console.log("Connected to the Vantage");
        vantage.on("loop", function(loop) {
            console.log(loop);
        });
    } else {
        console.log("Failed connecting to the Vantage: " + error);
    }
});

TODO

  • Custom settings
  • Multiple unit systems
  • Push commands (reset, alarms...)