Just starting - SOLVED

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
Posts: 7
Joined: 01 Jan 2019, 20:12

Just starting - SOLVED

Post by andy@2610.co.uk » 01 Jan 2019, 20:18

Just got my Netatmo weather station for Christmas. I do a lot of stuff on home automation with Raspberry Pis and have built a dashboard that I use. At the moment, this gets the external temp from OpenWeatherMap but, obviously, I want to use my own data.

I'm following the tutorial here:

https://dev.netatmo.com/en-US/resources ... odesamples

What I can't work out is my device_id for this bit:

Code: Select all

#This code sample uses requests (HTTP library)
import requests

params = {
    'access_token': '[YOUR_ACCESS_TOKEN]',
    'device_id': '[YOUR_DEVICE_ID]'

    response = requests.post("https://api.netatmo.com/api/getstationsdata", params=params)
    data = response.json()["body"]
except requests.exceptions.HTTPError as error:
    print(error.response.status_code, error.response.text)
Looking at the documentation, I'm wondering if I've missed something as it all seems to assume a high degree of prior knowledge - this being a case in point.

Could someone point me in the right direction, please.

Last edited by andy@2610.co.uk on 02 Jan 2019, 10:57, edited 1 time in total.

Posts: 7
Joined: 01 Jan 2019, 20:12

Re: Just starting

Post by andy@2610.co.uk » 02 Jan 2019, 10:57

Found out that it doesn't actually need the device_id.

Post Reply

Return to “Netatmo API”