Author Topic: Adding details to status page  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Adding details to status page
« on: April 13, 2011, 12:23:40 PM »
Ken or someone else,

I would like to add the status of my camera image (../wx/fixed.jpg) to the status page.  It is uploaded every 10 minutes.  I have looked at the wxstatus page but can't seem to understand how to do it.  Help please.

http://www.jayswoodfurniture.com/weather/wxstatus.php

Thanks,

Jay

Well, I seem to have it on the page, but How does the script know what the upload rate is.  Where is that in the code?  Probably here
,'../wx/fixed.jpg',10*60+15,'file');
how do I make that show it is supposed to upload every 10 minutes?
« Last Edit: April 13, 2011, 12:44:14 PM by jay_hoehn »
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Adding details to status page
« Reply #1 on: April 13, 2011, 01:05:44 PM »
jay,
You got it.
the math is changing your time frame to seconds.  So 10 minutes times 60 gives 600 seconds, the 15 is padding for upload.  So it will say "NOT Current" in red if no new file is uploaded by 615 seconds.

I watched yours it got to 10:10, I hit reload one more time, oddly the Web Cam line disappeared, hit reload again and it said "current" 0:00:15.  So the file uploaded.

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: Adding details to status page
« Reply #2 on: April 13, 2011, 01:09:36 PM »
Andrew,

Thanks for the explanation.  I think I got it.

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


 

anything