Netatmo plugin: bad request

Post Reply
El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Netatmo plugin: bad request

Post by El_Viejo » Fri Jul 14, 2023 4:02 pm

After more than two years working perfectly, something is wrong with the Netatmo plugin and the database is not updated.
As my configuration is unusual, I will detail it.
"Meteotemplate Papaya" is hosted on an Apache server installed on a Raspberry Pi and is only accessible from my LAN.
I use the Raspberry Pi 4B almost exclusively to access Meteotemplate and two other weather websites. Exceptionally, I browse other websites.
To access the Netatmo servers and update the database, I use a Chrome extension that automatically refreshes every 5 minutes. To do this, I connect to http://rpimeteo/template/plugins/netAtm ... hp?pass=xx
For three days now, instead of the message "Success", the following appears: "An error happened while trying to retrieve your tokens: bad request".
I have consulted a lot of information, cleared browser history and cookies, Meteotemplate cache, created a new API in Netatmo, but I am not able to solve the problem.
Can anyone help me.
Thanks in advance.

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Netatmo plugin: bad request

Post by El_Viejo » Fri Jul 14, 2023 6:17 pm

Following my research on this matter I have found this
https://forum.netatmo.com/viewtopic.php?t=21387
It matches the date of occurrence of my problem. I will try to follow the instructions tomorrow, but it seems complicated for my limited knowledge.
Jachym can you check if it is necessary to update the plugin?
Thank you very much.

cryoxdsl
Newbie
Newbie
Posts: 8
Joined: Wed Jan 10, 2018 10:29 pm
Location: Meyreuil, France
Station model: Netatmo
Software: API
Contact:

Re: Netatmo plugin: bad request

Post by cryoxdsl » Mon Jul 17, 2023 6:46 pm

Hello, we have initiated a similar discussion on this topic at the following link: viewtopic.php?t=2403

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Netatmo plugin: bad request

Post by El_Viejo » Tue Jul 18, 2023 7:38 pm

Here is a copy of the email I sent to Jachym.

Good afternoon Jachym:

I have raised in the forum my problems with Netatmo data and so far I have had no answers.

http://www.meteotemplate.com/forum/viewtopic.php?t=2404

I think they are related to the new authentication procedure established by Netatmo.

I have checked on these two websites:

https://dev.netatmo.com/apidocumentatio ... ation-code

https://forum.netatmo.com/viewtopic.php?t=21387

I have performed numerous tests without success. The closest to a satisfactory result I have obtained with:

https://api.netatmo.com/oauth2/authoriz ... /127.0.0.1

It directed me to Netatmo's "External Applications" page, with this error message:

"Array is not an allowed scope for Papaya0723".

Could you please help me? Thank you very much.


Javier

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Netatmo plugin: bad request

Post by FSC830 » Wed Jul 19, 2023 8:02 am

My guess: Jachym is currently working at the PHP8 compatibilty for the basic template, so it can last a while until all plugins/add-ons are modified.

Regards
Image

Julius
Advisor
Advisor
Posts: 91
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: Netatmo plugin: bad request

Post by Julius » Wed Jul 19, 2023 9:55 am

FSC830 wrote: Wed Jul 19, 2023 8:02 am My guess: Jachym is currently working at the PHP8 compatibilty for the basic template, so it can last a while until all plugins/add-ons are modified.
This has nothing to do with php 8. Most of us are still using MT with php 7.4.
Image

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Netatmo plugin: bad request

Post by FSC830 » Wed Jul 19, 2023 10:37 am

I know that this has nothing to do with PHP8.
This is only to mention, that Jachym is may be busy with the PHP8 conversion and that other things are postponed.
Image

Julius
Advisor
Advisor
Posts: 91
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: Netatmo plugin: bad request

Post by Julius » Sun Aug 06, 2023 8:11 am

Still no data from the plugin. Legrand/netatmo aren't changing this back either, so we're basically out of netatmo stations support.

Back to weewx: https://github.com/matthewwall/weewx-netatmo/issues/21
Last edited by Julius on Wed Dec 06, 2023 12:32 pm, edited 1 time in total.
Image

johnathan
Observer
Observer
Posts: 29
Joined: Thu Apr 08, 2021 1:14 pm
Station model: wh1080
Software: WU

Re: Netatmo plugin: bad request

Post by johnathan » Mon Aug 14, 2023 3:33 pm

From web development to mobile applications, MLSDev's https://mlsdev.com versatility knows no bounds. Their expertise isn't confined to one platform; it's a harmonious blend of creativity, innovation, and adaptability. The way they seamlessly transition from brainstorming to coding, testing to launch, is akin to an artisan refining raw materials into a masterpiece.

davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Netatmo plugin: bad request

Post by davidefa » Mon Oct 09, 2023 2:22 pm

I can update the netatmo plugin, but need valid netatmo credentials
Image

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Netatmo plugin: bad request

Post by El_Viejo » Fri Oct 13, 2023 3:08 pm

I have always admired Jachym's work and dedication. It is very difficult to find examples of such generosity on the Internet.

Unfortunately, the changes put in place by Netatmo to access their servers have taken the template out of service for those of us who have that station.
I am aware of the difficulties of permanently adapting to changes in the network. In my opinion, it would be very convenient for Jachym to clarify if he considers possible to update the plugin to Netatmo's new requirements.

Apparently, others are managing to do so.

https://oe7drt.com/posts/2023-07-15-upd ... extension/
https://github.com/Buco7854/weewx-netatmo
https://indilib.org/forum/wish-list/291 ... tions.html

Thank you very much Jachym for your dedication.

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin: bad request

Post by tobydude » Thu Oct 19, 2023 5:54 am

My website has been "down" for several monts. Netatmo doesn´t work anymore.
Still Waiting for a fix. :)

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Netatmo plugin: bad request

Post by tobydude » Thu Oct 19, 2023 5:56 am

davidefa wrote: Mon Oct 09, 2023 2:22 pm I can update the netatmo plugin, but need valid netatmo credentials
From each user?

davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Netatmo plugin: bad request

Post by davidefa » Thu Oct 19, 2023 6:44 am

Yes, I'm working on it ( I received the credentials from El_Viejo ).
It should be ready next week...
Image

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Netatmo plugin: bad request (solution)

Post by El_Viejo » Wed Oct 25, 2023 4:50 pm

Solved. :D
See the thread http://www.meteotemplate.com/forum/viewtopic.php?t=2445
Thank you very much Davide.

Post Reply