UNPKG

signalk-provider-vor1415

Version:

This provider takes the VOR2014/2015 JSON stream and transforms it into Signal K vessel information

29 lines (19 loc) 662 B
signalk-provider-vor1415 ======================== This provider takes the VOR2014/2015 JSON stream and transforms it into Signal K vessel information Installation ------------ `npm install --save signalk-provider-vor1415` Usage ----- Use in a [Signal K server](https://github.com/signalk/signalk-server-node) or standalone (as a Node.js stream): ``` var options = { interval: 1800000 // 30 minutes between downloads }; var Race = require('signalk-provider-vor1415'); var race = new Race('http://www.volvooceanrace.com/fr/rdc/VOLVO_WEB_LEG2_2014.json', options); race.on('data', function(data) { console.log('delta\n', JSON.stringify(data)); }); ```