node-vantage

A simple Davis Vantage serial driver for Node.js

Usage no npm install needed!

<script type="module">
  import nodeVantage from 'https://cdn.skypack.dev/node-vantage';
</script>

README

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...)