API file not found

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

API file not found

Post by El_Viejo » Fri Apr 29, 2022 6:23 pm

I am installing the Papaya version on a Raspberry Pi (64 bits) and I have transferred the database of the Nectarine version I have on another Raspbeer Pi (32 bits).
My station is NETATMO.
I have configured the netAtmo and APIviewer plugins. Also the blocks current, stationdata, stationstatus and some more.
On the home page, in the current block I get the message: "API file not found".
When I try to update the station data with:
http://rpimeteo/template/plugins/netAtm ... php?=1xxxx
I get the message: "Unauthorized".
I have been trying for several hours to find the error without success.
I am sure that the netAtmo plugin data is correct and I have checked on their website that "Webhook Status" is OK.
I am probably obfuscated.
Can anyone help me?
Many thanks in advance.

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

Re: API file not found

Post by El_Viejo » Fri Apr 29, 2022 8:25 pm

I continue to investigate and have found an anomaly.
In the Nectarine version (Raspbery 32bits) there is a file "meteotemplateLive.txt" in the "template" folder.
In Papaya (Raspberry 64 bits) this file does not exist.
What is the cause and how is this file created?
The most difficult thing, the database import was successful and the history block shows the data of almost three years.
Can anyone help me?
Thanks in advance

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

Re: API file not found

Post by davidefa » Fri Apr 29, 2022 8:30 pm

I think the update url should be:

Code: Select all

http://rpimeteo/template/plugins/netAtmo/update/update.php?pass=YOUR_UPDATE_PASSWORD
P.S.
The meteotemplateLive.txt file is generated once you succesfully call the update.php script ( which calls api.php that generates meteotemplateLive.txt )
Image

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

Re: API file not found

Post by El_Viejo » Sat Apr 30, 2022 10:26 am

Effectively, it was obfuscated.
I added "pass" after ? and now it says "Success".
That was the address I had for the RPi 32 bit. Hours of complicated research and everything was simpler.
The only excuse is that, at 81 years old, these things happen.
However I'm happy I got it with your help.
Thank you very much.

Post Reply