Simple goloang client to retrieve json data from the netatmo weather station via [api.netatmo.com]
More details:
https://dev.netatmo.com/resources/technical/reference
- clone
$ git clone [email protected]:mariusbreivik/GoNetatmo.git
- install project dependencies:
$ dep ensure
- You need to create an application at https://dev.netatmo.com/ to be able to get your weather station data fra https://api.netatmo.com
Create the .env file in the project directory containing the following:
CLIENT_ID=<clientID from your app at https://dev.netatmo.com/myaccount/>
NETATMO_USERNAME=<your username @ netatmo>
NETATMO_PASSWD=<your password @ netatmo>
CLIENT_SECRET=<your client secret for your app @ netatmo>
- run
$ go run main.go