netatmo-wunderground-pws

Connects Netatmo data to a Weather Underground PWS

Usage no npm install needed!

<script type="module">
  import netatmoWundergroundPws from 'https://cdn.skypack.dev/netatmo-wunderground-pws';
</script>

README

Netatmo-Wunderground-PWS

Connects Netatmo data to a Weather Underground PWS

Usage

Install the library:

npm install --save netatmo-wunderground-pws

Require it:

var netatmoWunderground = require('netatmo-wunderground-pws')

Set your credentials

var authInfo = {
    "netamo_client_id": "YourClientId",
    "netamo_client_secret": "YourclientSecret",
    "netamo_username": "YourUsername",
    "netamo_password": "YourPassword",
    "wundergroundStationId": "YourStation",
    "wundergroundUserPassword": "YourSiteLoginPassword"
  };
  
  netatmoWundergroundUploader = new netatmoWunderground(authInfo);

Example to get data

//Send data on startup
netatmoWundergroundUploader.getNetatmoData();

//Refresh and upload data every 2.5 minutes
setInterval(function() {
    netatmoWundergroundUploader.getNetatmoData();
  }, 150000);

For a full working node project, go here: https://github.com/brbeaird/netatmo-wunderground-agent