Author Topic: WeatherCat CustomWeb->Additional Files Lagging  (Read 1498 times)

socalbob

  • Gentle Breeze
  • **
  • Posts: 24
  • Station Details: Davis Vantage Vue, Mac Mini Server, WeatherLink IP
WeatherCat CustomWeb->Additional Files Lagging
« on: February 08, 2015, 11:16:18 PM »
I've recently upgraded to the Steel Series gauges 2.02 using the long poll option. This works great, except I noticed that my WeatherCat "realtimeGaugesWC.txt" file was not consistently updating at the 12 second interval I had set in CustomWeb -> Additional Files. Sometimes it would update in 12 seconds, sometimes it would take 30 or more seconds. It appeared from the log that when WeatherCat was busy processing the main custom web files, then it would fall behind and the realtimeGaugesWC.txt file would lag in getting updated.

I have WeatherCat set to upload my main and additional files directly to my web server directory (WeatherCat and the web server are on the same machine), so I'm not using FTP to load the processed files.

Does anyone have any idea why WeatherCat would get behind and not be able to process the Additional Files in a timely manner? Would shifting to FTP rather than a direct write to the web directory be better?

I'm running a recent vintage Mac Mini with 16GB of memory and Mavericks Server. There aren't a lot of other application running or hogging memory or CPU. WeatherCat 2.02.

Any thoughts would be appreciated.

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: WeatherCat CustomWeb->Additional Files Lagging
« Reply #1 on: February 09, 2015, 06:20:39 PM »
Yes, it can only process one job at a time, so if it's running the main custom web pages processing, then any additional files are queued until it can process them (see the manual page 132 for more info - especially the note about custom web weather sync).

In the future it might be possible to improve this - I'll add it to the list of things to look at.

UncleBuck

  • Strong Breeze
  • ***
  • Posts: 114
    • IVICTORI276
    • Point Cook Weather
  • Station Details: Oregon WMR200, MAC OS X 10.10, WeatherCat V2
Re: WeatherCat CustomWeb->Additional Files Lagging
« Reply #2 on: February 11, 2015, 02:38:39 AM »
I am assuming these errors in the console are a direct result of this issue?

11/02/2015 13:19:16.155 WeatherCat[745]: CustomWeb: Rejecting custom web file (being driven too hard) - slow down additional web pages: /Users/wc/Documents/WeatherCatReports/WeatherCat-templates/realtime/WCT_realtime.txt
11/02/2015 13:19:16.155 WeatherCat[745]: CustomWeb: Rejecting custom web file (being driven too hard) - slow down additional web pages: /Users/wc/Documents/WeatherCatReports/WeatherCat-templates/realtime/realtimegaugesWC.txt

socalbob

  • Gentle Breeze
  • **
  • Posts: 24
  • Station Details: Davis Vantage Vue, Mac Mini Server, WeatherLink IP
Re: WeatherCat CustomWeb->Additional Files Lagging
« Reply #3 on: February 11, 2015, 02:57:40 AM »
Stu,
OK, thanks, sorry I missed that in the manual. I'd like to drive the steel gauges so they update every few seconds, so i have a  web page that works a bit like the weather cat client... almost real time. This would require a mechanism to write out the data to a file very few seconds. The long poll / ajax option in the steel gauges then updates the web page as soon as the data file is updated.

I really like weather cat, so please keep at it!