Page 1 of 1
API file not find
Posted: Wed Nov 15, 2023 3:01 pm
by Plaat
I have a problem with the API file in my template. The same code in Papaya works months good. My hardware configuratie is Davis Vantage Vue to house console and Meteobridge Pro Red. This last one gives well the data buth no update to my extene website (Meteotemplate Canberry). I have the the new tempate Canberry after the php problems complete new installed. Now i get in "errorChekker.php" this notice "API file not found. This means your template is not being updated." and nothing is seen in my template (no blocks and no plugins). What is the problem? Have any else this problem? Thanks for help.
Re: API file not find
Posted: Wed Nov 15, 2023 6:46 pm
by FSC830
No, in all of my installations I did not see this problem.
Are you sure, the API file is created and in correct place/folder?
Regards
Re: API file not find
Posted: Wed Nov 15, 2023 8:52 pm
by Plaat
Hi FSC830, i think that the locations are O.K. , the "api.php" file is standard in the ( /......./template/ ) place and the "googleMapsKey.txt" in the install map. Its strange that the key works under the Papaya version and not now under the Cranberry version. Also my MeteoBridge Pro red will not update this "Event".
Re: API file not find
Posted: Wed Nov 15, 2023 9:27 pm
by FSC830
Which "event"' are you talking about?
Me too using a Meteobridge red and do not have any issues with the v19 template.
Can you check, if the file meteotemplateLive.txt is created?
If the file is created (check timestamp) every minute, check next, if the data is transferred into database. Usually every 5min an entry is added.
Regards
Re: API file not find
Posted: Wed Nov 15, 2023 10:53 pm
by davidefa
If you check you cache/apiLog.txt (
https://www.plaatinfo.nl/MeteoTemplate/ ... apiLog.txt ) you can see that meteobridge is sending data to your meteotemplate site.
The url of your site is
https://www.plaatinfo.nl/MeteoTemplate/ ... esktop.php
Check in the meteotemplate main setup that:
- pageURL =
https://www.plaatinfo.nl
- path = /MeteoTemplate/meteotemplate/template/
It should be already so ( as the site main page is loading correctly ).
In cache/apiLog.txt It reports always that no data is saved to the database, but the database contains data starting from 22:45 of today (
https://www.plaatinfo.nl/MeteoTemplate/ ... /graph.php ), which is strange in my opinion
P.S.
I see your meteobridge update rate is set to 5 mins, you could set to 1 min to see if that helps
P.P.S.
I see you set you pressure database unit to mmHg but your minimum/maximum pressure limit are set to 950/1040 ( which are ok for hPa ), so you should change or the min/max value limit or the database pressure unit ( to hPa, which should be the be ok too ), otherwise you pressure data is not saved in database
Re: API file not find
Posted: Thu Nov 16, 2023 11:07 am
by Plaat
Answer for FSC830: Yes the file meteotemplateLive.txt works see results.
{"U":1700131381,"SW":"meteobridge","T":8.1,"TMX":8.1,"TMN":8.1,"H":40,"P":1012.6,"W":0,"G":0,"B":207,"R":0,"RR":0,"TIN":4.8,"HIN":96,"UTime":1700131535,"SWTime":1700131535,"TTime":1700131535,"TMXTime":1700131535,"TMNTime":1700131535,"HTime":1700131535,"PTime":1700131535,"WTime":1700131535,"GTime":1700131535,"BTime":1700131535,"RTime":1700131535,"RRTime":1700131535,"TINTime":1700131535,"HINTime":1700131535,"D":-4.8,"DTime":1700131535,"A":5.5,"ATime":1700131535}
Now i see in the Meteobridge under "Networks" the 2 vinks are green. Strange. Online signal on website is green but no blocks or plugins to see.
Re: API file not find
Posted: Thu Nov 16, 2023 11:19 am
by Plaat
answer for davideta: The URL is checked and the path is also good. This is the result from "latestApiCache.txt"
{"timestamp":["1700132581"],"date":["2023-11-16 12:03:01"],"T":["8.2"],"Tmax":["8.2"],"Tmin":["8.2"],"H":["40"],"P":["1012.5"],"W":["0.0"],"G":["0.0"],"B":["207"],"R":["0.0"],"RR":["0.0"],"D":[-4.7],"A":[5.6]}
The pressure database corrected from mmHg to hPa (thanks). This all looks allright but i see no results on my Meteotemplate website (maybe another Problem) Thans for this problem.
Re: API file not find
Posted: Thu Nov 16, 2023 12:09 pm
by FSC830
What happens, if you run the update manually?
See
here.
Success or error?
Regards