Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tregusti/node-netatmo
A node.js API to query the NetAtmo server.
https://github.com/tregusti/node-netatmo
Last synced: 21 days ago
JSON representation
A node.js API to query the NetAtmo server.
- Host: GitHub
- URL: https://github.com/tregusti/node-netatmo
- Owner: tregusti
- Created: 2013-04-26T22:34:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-27T11:13:32.000Z (over 11 years ago)
- Last Synced: 2024-10-11T13:38:16.492Z (about 1 month ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Api for NetAtmo
This is a simple initial version of a node.js API to query the [NetAtmo REST API][1].
## Install
Very soon you'll be able to install it with NPM like this.
```bash
npm install netatmo
```## Usage
```js
var NetAtmo = require( "netatmo" );
var netatmo = new NetAtmo( "username", "password" );
netatmo.user( function( user ) {
console.dir( user );
});
```## Instance methods
* `user`: takes a callback that gets a single argument back that is the user object gotten from the [NetAtmo API][1].
* `devices`: takes a callback that gets a single argument that is an array with objects describing the devices.Getting real information is still a work in progress.
[1]: http://dev.netatmo.com/