# Newbie / Netatmo weather station data questions

**URL:** https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448
**Category:** General
**Tags:** node-red-dashboard, home-assistant
**Created:** [24 April 2024 04:55 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448 "2024-04-24T04:55:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ThierryIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thierryit/32/90418_2.png) [@ThierryIT](https://discourse.nodered.org/u/ThierryIT)
#### Post date: [24 April 2024 04:55 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/1 "2024-04-24T04:55:19Z")

</div>

Hello,  
My first post, of course I know nothing in Node-red.  
I am using as Node: contib-netatmo v0.3.0, netatmon-dashboard v1.0.0 and oauth2 v5.2.7.  
When including the oauth2 node, I have an Error 502.  
The plan is to manage the light of my house depending on the weather condition, if cloudy, light on if sunny light off 🙂  
As I already say, I don't know anything about this tool. The first thing I am trying to do is to grab data from my Netatmo weather station ...  
What payload do I need to "use" to inject ?  
I have done two different tests:

1. timestamp -\> Netatmo Daskboard -\> debug
2. timestamp -\> get stations data -\> debug

For the first one, it seems to connect where it should be.  
For the second one, with the same credentials, I have authentification error.  
For both see attached files.

 ![Capture d'écran 2024-04-24 073552](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/224d352dd8114e9612fb109a78d705b12ac95b10.png)  
 ![Capture d'écran 2024-04-24 073648](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8c871caafb23420682168d89085a6c0b945058ec.png)

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [24 April 2024 05:21 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/2 "2024-04-24T05:21:07Z")

</div>

Both nodes have issues regarding OAuth2 (see the github issue list), I gave up on it and installed [node-red-contrib-oauth2](https://flows.nodered.org/node/node-red-contrib-oauth2)

This is more complicated but have not had any issues with it since.  
See [this post](https://discourse.nodered.org/t/node-red-contrib-netatmo-0-3-0-error-authenticate-error-unauthorized-client/79952/24) that explains the steps.

---

<div class="post-metadata">

### Author: ![ThierryIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thierryit/32/90418_2.png) [@ThierryIT](https://discourse.nodered.org/u/ThierryIT)
#### Post date: [24 April 2024 05:50 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/3 "2024-04-24T05:50:21Z")

</div>

Hi,  
I have followed your post.  
I have done the same, I am using in my example the node-red-conjtrib-oauth2.  
I have filled the credentials (clientID, client Secret, etc.).  
Bit I do have a pb with the "key". When I press it, I am forwarded to my Homeassistant web page with: Not Found. and an HTTP 400 error.

```auto
[type or paste code here](http://192.168.xxx.xxx:8123/api/hassio_ingress/Tku0mUCPln-EBUAZKg1B_Y0iph59NEw4MC7NVL-Jy2c/oauth2/auth?id=0e266eb761268faf&clientId=66xxxxxxxxxxxxxc3&clientSecret=EOxxxxxxxxxxxxxxxxxxxxqa7uoJ1mS3Jc1JiyD&scope=read_station&state=&resource=&callback=http%3A%2F%2Fnode-red.example.com%3A8123%2Fapi%2Fhassio_ingress%2FTku0mUCPln-EBUAZKg1B_Y0iph59NEw4MC7NVL-Jy2c%2Foauth2%2Fauth%2Fcallback&authorizationEndpoint=https%3A%2F%2Fapi.netatmo.com%2Foauth2%2Fauthorize&redirectUri=http%3A%2F%2F192.168.xxxx.xxxx%3A8123%2Fapi%2Fhassio_ingress%2FTku0mUCPln-EBUAZKg1B_Y0iph59NEw4MC7NVL-Jy2c%2Foauth2%2Fredirect&proxy=_ADD_)

```

I am changing secret after posting 🙂

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [24 April 2024 06:05 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/4 "2024-04-24T06:05:44Z")

</div>

Because you are running node-red under home assistant ? Home assistant creates more problems than it solves. Most here don't use home assistant, perhaps their forums have a solution ?

---

<div class="post-metadata">

### Author: ![ThierryIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thierryit/32/90418_2.png) [@ThierryIT](https://discourse.nodered.org/u/ThierryIT)
#### Post date: [24 April 2024 06:06 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/5 "2024-04-24T06:06:27Z")

</div>

Ha ok ...  
I can switch to my Node-red VM 🙂

---

<div class="post-metadata">

### Author: ![ThierryIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thierryit/32/90418_2.png) [@ThierryIT](https://discourse.nodered.org/u/ThierryIT)
#### Post date: [24 April 2024 06:25 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/6 "2024-04-24T06:25:51Z")

</div>

This time, I have an oauth2.error.no-credentials error message ...

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [24 April 2024 06:32 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/7 "2024-04-24T06:32:04Z")

</div>

I have linked to a flow/post above that works.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 July 2024 06:57 UTC](https://discourse.nodered.org/t/newbie-netatmo-weather-station-data-questions/87448/10 "2024-07-23T06:57:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
