New Server

Post Reply
User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

New Server

Post by jay_hoehn » Sat Sep 10, 2022 9:35 pm

I changed my station to a Virtual Private server. Copied all the files, used the same file structure and now the template opening page is current only the first time I open it. Database info doesn't update, Current Conditions wont ajax update. The Steel Series gauges are updating correctly. I know the data is going and updating because the API Viewer is updating. I'm lost as where to look. All settings are correct. Using a Rasberry Pi running WeeWx to upload. All is working on that side. Just don't seem to get the ajax updates. Any help would be appreciated.

http://www.jayswoodfurniture.com/meteo/indexDesktop.php

Jay

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

Re: New Server

Post by davidefa » Sat Sep 10, 2022 11:21 pm

You should have some caching enabled on your server that interferes with the normal meteotemplate functioning.
You can check loading:
http://www.jayswoodfurniture.com/meteo/ ... iLog.txt?a
You have a different result only when you change the chars after the ?
Try disabling the server caching.
If you want to reenable you have to configure which files to cache ( .php and .txt files should not, for example )


P.S.
I see your api.php is called every 2 seconds ( I think it is too much fast )
Image

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: New Server

Post by jay_hoehn » Sun Sep 11, 2022 2:19 am

davidefa,

Thanks so much. I disabled server cache and that took care of the issue. The API is called every 2 seconds by WeeWx by using the loop of the Davis station. I don't think it can be changed or I don't know how. Any thoughts?

Thanks,

Jay

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

Re: New Server

Post by davidefa » Fri Sep 16, 2022 9:52 pm

Sorry, no experience with weewx
Image

Post Reply