Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no current rain value #39

Open
Diginix opened this issue Feb 18, 2022 · 6 comments
Open

no current rain value #39

Diginix opened this issue Feb 18, 2022 · 6 comments

Comments

@Diginix
Copy link

Diginix commented Feb 18, 2022

If I open the map I see
https://weathermap.netatmo.com//?stationid=70%3Aee%3A50%3A65%3A37%3Ae8
image
But netatmo-crawler.0.stationData.1.rain value is 0
netatmo-crawler.0.stationData.1.rain_today is 0.9
Same for a second station:
https://weathermap.netatmo.com//?stationid=70%3Aee%3A50%3A03%3A64%3A2c
image
netatmo-crawler.0.stationData.2.rain is 0
netatmo-crawler.0.stationData.2.rain_today is 0.7

adapter: 0.7.1
js-controller: 4.0.12
nodejs: 14.19.0

@Bart1909
Copy link
Owner

I don't know, what causes this issue. The API from Netatmo is returning also was 0 for current rain.
I will have to further analyze, how the webpage gets the current rain value

@Bart1909
Copy link
Owner

It seems, the rain value from the api is now a real time value and not the sum of the last hour.
Because of this, i've added a new state 'rain_lastHour' which gets the sum of the rain in the last hour.
Please try latest version 0.8.x

@Diginix
Copy link
Author

Diginix commented Feb 19, 2022

Thanks! And the realtime value from website will be in netatmo-crawler.0.stationData.0.rain?
Because this was 0 even when website shows a value.

  • realtime = netatmo-crawler.0.stationData.1.rain
  • hour = netatmo-crawler.0.stationData.1.rain_lastHour
  • day = netatmo-crawler.0.stationData.1.rain_today

@Bart1909
Copy link
Owner

I've changed nothing on the .rain state. This should be the real time value, I think.

With 0.8 you will see .rain (Real Time), .rain_lastHour, .rain_today and .rain_yesterday

@Diginix
Copy link
Author

Diginix commented Feb 19, 2022

Ah ok, I guess the realtime value isn't shown on the website and comes only with the API.
0.8.1 works, but at the moment there is no rain to check the new state.

@Bart1909
Copy link
Owner

Yep, seems so. I guess, the website collects data from all stations in the visible area and summarizes the data. The network activity suggests that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants