Page 1 of 1
New Server
Posted: Sat Sep 10, 2022 9:35 pm
by jay_hoehn
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
Re: New Server
Posted: Sat Sep 10, 2022 11:21 pm
by davidefa
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 )
Re: New Server
Posted: Sun Sep 11, 2022 2:19 am
by jay_hoehn
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
Re: New Server
Posted: Fri Sep 16, 2022 9:52 pm
by davidefa
Sorry, no experience with weewx