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.
API file not found
-
- Advisor
- Posts: 80
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Netatmo
Re: API file not found
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
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
-
- 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
I think the update url should be:
P.S.
The meteotemplateLive.txt file is generated once you succesfully call the update.php script ( which calls api.php that generates meteotemplateLive.txt )
Code: Select all
http://rpimeteo/template/plugins/netAtmo/update/update.php?pass=YOUR_UPDATE_PASSWORD
The meteotemplateLive.txt file is generated once you succesfully call the update.php script ( which calls api.php that generates meteotemplateLive.txt )
-
- Advisor
- Posts: 80
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Netatmo
Re: API file not found
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.
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.