mirror of
https://github.com/steinhobelgruen/netatmo-api-go.git
synced 2024-11-23 23:03:56 +00:00
Fix
This commit is contained in:
parent
dbb64a439a
commit
82ab0252b0
|
@ -5,7 +5,9 @@ Currently tested only with one weather station, outdoor and indoor modules. Let
|
||||||
|
|
||||||
## Quickstart
|
## 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
|
## Example
|
||||||
|
|
||||||
|
@ -51,7 +53,7 @@ func main() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Output should looks like this :
|
Output should look like this :
|
||||||
```
|
```
|
||||||
Station : Home
|
Station : Home
|
||||||
Module : Outside
|
Module : Outside
|
||||||
|
@ -78,5 +80,5 @@ Station : Home
|
||||||
|
|
||||||
```
|
```
|
||||||
## Tips
|
## 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.
|
- Main station is handle as a module, it means that Modules() method returns list of additional modules and station itself.
|
||||||
|
|
Loading…
Reference in a new issue