This commit is contained in:
Nicolas Leclercq 2015-09-11 17:14:09 +02:00
parent dbb64a439a
commit 82ab0252b0
1 changed files with 44 additions and 42 deletions

View File

@ -5,7 +5,9 @@ Currently tested only with one weather station, outdoor and indoor modules. Let
## Quickstart
[Create a new netatmo app](https://dev.netatmo.com/dev/createapp)
- [Create a new netatmo app](https://dev.netatmo.com/dev/createapp)
- Download module ```go get github.com/exzz/netatmo-api-go```
- Try below example (do not forget to edit auth credentials)
## Example
@ -51,7 +53,7 @@ func main() {
}
```
Output should looks like this :
Output should look like this :
```
Station : Home
Module : Outside
@ -78,5 +80,5 @@ Station : Home
```
## Tips
- Only GetDeviceCollection() method actually do an API call ands refresh all data at once
- Only GetDeviceCollection() method actually do an API call and refresh all data at once
- Main station is handle as a module, it means that Modules() method returns list of additional modules and station itself.