Skip to content

Commit

Permalink
Update token request with new scope parameter
Browse files Browse the repository at this point in the history
Due to Netatmo API change, a new "scope" parameter is required for client authentication.
scope is requested with "read_station" value. This is the only scope currently supported in this library. Other scope values are related to thermostat management (I don't have one, I can't test anything thus I will not try to develop in the blind.) Contributions are welcome.

Appart from new API compliance, no change has been introduced in usage.
  • Loading branch information
philippelt committed Mar 11, 2014
1 parent 7f01967 commit 51b3c1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lnetatmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def __init__(self, clientId=_CLIENT_ID,
"client_id" : clientId,
"client_secret" : clientSecret,
"username" : username,
"password" : password
"password" : password,
"scope" : "read_station"
}
resp = postRequest(_AUTH_REQ, postParams)

Expand Down

0 comments on commit 51b3c1f

Please # to comment.