Author Topic: How to add webcam image to WeatherCat/Saratoga Template page  (Read 7160 times)

rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
How to add webcam image to WeatherCat/Saratoga Template page
« on: August 29, 2012, 11:04:12 PM »
Hi
Can some one point me to instructions or possible tell me how to add my weather webcam image to my WeatherCat generated Webpage running Saratoga php templates?

Thanks Much
Rich

http://www.bluebirdsknoll.com


HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #1 on: August 30, 2012, 01:02:05 AM »
Hi Rich,

I have a webcam working on my site using the Saratoga templates.

Ensure that your WCTtags.php has the following line:
WCAM|WCAM$|// Current web-cam picture at resolution set in WC. :|:

This will upload the current webcam image with the normal FTP upload.

Then create a webcam page which will show the image "webcam.jpg", use the wxnewpage.php as a template

Then edit your "flyout-menu.php" to include the new webcam page

You can use the same process to add hourly movie, gauges and custom graphs

Let me know if you need any more help.

Tony

rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #2 on: August 31, 2012, 09:47:49 PM »
Thanks -- Yep the tags are there and the file is uploading to my site.  But how about just adding it to my front page under the two maps?  How would I do that?

Thanks


HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #3 on: September 01, 2012, 12:03:46 AM »
Thanks -- Yep the tags are there and the file is uploading to my site.  But how about just adding it to my front page under the two maps?  How would I do that?

Thanks
I'm using the World template not the US so I don't get the maps on the front page, but i think this should be similar.

In your index.php file (or wxindex.php in your case i think) add the following:

<img src="webcam.jpg" alt="Webcam">

Put this just before the following line:

   <?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
Which is the start of the dashboard on the home page.

Tony


rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #4 on: September 01, 2012, 01:15:29 AM »
great Tony I got it working.  BUt I found these few lines.  Why would it think this?
I've defined the weather station in all places that i found, did I miss one?

print "<p>&nbsp;</p>\n";
      print "<p>&nbsp;</p>\n";
      print "<p>Note: ajax-dashboard not included since weather station not yet specified.</p>\n";

Thanks

Rich

HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #5 on: September 01, 2012, 01:40:26 AM »
Where are you finding them?
They are included in the "code' of several pages, but they shouldn't be appearing on any pages on your site (i.e. viewable to the public via internet) if you have defined your weather station software in Settings-weather.php

Tony

rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #6 on: September 01, 2012, 02:18:19 AM »
Tony its not appearing on the site, but its in the wxindex.php file actually just below the line that says

<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
    { include_once($SITE['ajaxDashboard']);
      } else {
      print "<p>&nbsp;</p>\n";
      print "<p>&nbsp;</p>\n";
      print "<p>Note: ajax-dashboard not included since weather station not yet specified.</p>\n";
The weather station is defined in settings-weather.php as a Davis VP

HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #7 on: September 01, 2012, 04:18:25 AM »
That's OK, it's meant to be there

The message appears when you try and display the page without setting up your weather software.

I think it also appears on the graphs and almanac pages (if my memory serves me correctly) when the software hasn't been specified in Settings-weather.php

Tony

rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #8 on: September 01, 2012, 12:47:33 PM »
Thanks for your help Tony.  I do plan to add a webcam page and add the daily movie to it.  I checked out your website, nice I like your tide graphs.  What php plugin is that?

Rich

HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #9 on: September 01, 2012, 01:19:48 PM »
I use www.tidespy.com, it's a free service but comes with a small advertisement, unless you are prepared to pay for the add free version.

Once you set it up with your location they supply you with a java script which you simply insert into your web page

The shipping map is a similar thing from www.marinetraffic.com, also a java script.

Tony

rasarisi

  • Gentle Breeze
  • **
  • Posts: 47
    • EW0704
    • KCTBETHA4
    • BlueBirds Knoll
  • Station Details: Davis Vantage Pro 2 Wireless & Vantage Vue Wirelless Console
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #10 on: September 01, 2012, 03:46:15 PM »
Thanks Tony thats cool stuff -- That gives me more things to add when I get a chance. 

How about this one, I know that the output from the WCTtags has a variable called WEATHERFACT| -- that has a fact about the weather.  How do I add that fact to the front page between the gizmo and the weather forecast?
Also, how do I change the forecast from showing just today and tonight to the next 5 days on the front page?

Thanks for your help

Rich

HairyMcLeary

  • Strong Breeze
  • ***
  • Posts: 164
    • DW5912
    • INORTHOT6
  • Station Details: LaCrosse WS2355, iMac 2.66 Ghz Core 2 Duo, 8 GB RAM, Mountain Lion
Re: How to add webcam image to WeatherCat/Saratoga Template page
« Reply #11 on: September 01, 2012, 09:23:32 PM »
I'm not sure how to go about adding more days to the weather forecast  on the front page, I will look into it.

To display the weather facts, just place this line wherever you want it to display:


   <p><b>Weather Fact: </b><?php echo $WX['WEATHERFACT']; ?>



Tony