Can't connect to the api

Post Reply
livefeed
Observer
Observer
Posts: 26
Joined: Sat Jan 26, 2019 6:05 am
Location: Lusby, MD
Station model: Davis pro 2
Software: Meteobridge
Contact:

Can't connect to the api

Post by livefeed » Thu Jul 11, 2024 9:22 pm

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.
Attachments
Screenshot 2024-07-08 at 1.05.08 PM.png
Screenshot 2024-07-08 at 1.05.08 PM.png (66.59 KiB) Viewed 16029 times
Image

Alvaro Poggiani
Advisor
Advisor
Posts: 80
Joined: Fri Dec 29, 2023 3:29 pm
Station model: Davis Vantage Pro2 Plus
Software: Meteobridge Pro2

Re: Can't connect to the api

Post by Alvaro Poggiani » Fri Jul 12, 2024 6:58 am

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.

livefeed
Observer
Observer
Posts: 26
Joined: Sat Jan 26, 2019 6:05 am
Location: Lusby, MD
Station model: Davis pro 2
Software: Meteobridge
Contact:

Re: Can't connect to the api

Post by livefeed » Fri Jul 12, 2024 3:45 pm

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.
Image

User avatar
Gus
Observer
Observer
Posts: 10
Joined: Sun Aug 20, 2017 11:17 pm
Location: Halethorpe, Maryland
Station model: Davis Vantage Pro 2+
Software: Weather Display
Contact:

Re: Can't connect to the api

Post by Gus » Tue Jul 16, 2024 3:14 pm

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.
Davis VP2+, LabJack w/temp sensors & 1-Wire lightning counter on Trigkey G4 Mini PC, 12th Gen Intel Alder Lake N95 Processor, 16GB SDRAM, and 500GB SSD, Windows11
Image

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

Re: Can't connect to the api

Post by FSC830 » Fri Jul 26, 2024 2:02 pm

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
Image

Post Reply