Page 1 of 1

Can't connect to the api

Posted: Thu Jul 11, 2024 9:22 pm
by livefeed
I can’t get my station to connect (Meteobridge 6.0)and send data to the api, I am up to date with the template and I am using php 8.2.
Any help would be great.

Re: Can't connect to the api

Posted: Fri Jul 12, 2024 6:58 am
by Alvaro Poggiani
Ciao,
I also had a similar problem but I can't tell you the cause.
After many attempts I solved it
(but I can't give you an explanation)
leaving everything unchanged and returning to version 7.4 of PHP.
It all depends on whether your "Server Hosting" allows you to do this.
We will talk.

Re: Can't connect to the api

Posted: Fri Jul 12, 2024 3:45 pm
by livefeed
Unfortunately my host will not allow me to go back to v7.4i
Its odd as I did have is working in 8.2 but I had to reimport the template folder and now it just will not connect to the api.

Re: Can't connect to the api

Posted: Tue Jul 16, 2024 3:14 pm
by Gus
I have had problems with the my MeteoTemplate website randomly reporting offline. Running current version Weather Display to upload via API to server running PHP8.2. After restarting weather computer several times, and being offline for over 30 hours, I came across this post and did the fallback to PHP7.4. Weather Display started successfully uploading and website reported online. After being online for about 10 minutes, I went and changed to PHP8.0 and have stayed online for over 2 hours.
All looked good except the SS Gauges are not updating. Copied and inserted one line with 2024-7-15 date in database so a yesterday.txt file could be created and the SS gauges began updating.

7/17/24 - After about 24 hours running 8.0 the API hung again. Back to 7.4 for a couple of days to test if this is a PHP8+ problem.

Re: Can't connect to the api

Posted: Fri Jul 26, 2024 2:02 pm
by FSC830
Updated today to Meteobridge 6.0 version (from 5.7).
Meteotemplate is running PHP 8.3.x, no issues seen.
Did you check running the API.php manually as noted here?

Regards