Skip to content

Small approach to unify all weather stations in a NodeJS way

License

Notifications You must be signed in to change notification settings

dropdevcoding/urweather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your Weather

Small approach to unify all weather stations in a NodeJS way

Your Weather is a small library that try to get a normalized way to access to personal weather stations information.

Requeriments

Note: 0.11.x and 0.12.x don't work properly in node-hid yet. You can use NVM to switch between node versions. Remember if you use NVM, you must replace /usr/local/bin/node with the correct version: NPM packet manager by default use this path. It not use the local version of node installed by NVM in your working directory.

Installation

npm install urweather --save
// file: weather.js

var urweather = require('urweather');

var station = urweather.create('wh1080', {
  interval : 60,
  debug    : false
});

station.on('data', function( data , duration ) {

  console.log(data);

});

station.listen();

Run the script

  • Unix based system:
sudo node weather.js

License

Some parts of this repository are MIT License © David Pérez Terol

Read the licenses for each adapter in adapters/

About

Small approach to unify all weather stations in a NodeJS way

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%