Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 11:07 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 286 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 20  Next
Author Message
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Tue Oct 12, 2010 5:05 pm 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
Hi
Is there any code where I can forced the bannerto self update itself/refesh say after 15seconds ?

I have my banner on the bottom of my home page and would like it to self update once folk arrive on the site

tks

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Tue Oct 12, 2010 5:14 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
But... whenever anyone views the banner, the PHP already creates an image with the latest data, so why do you need it to refresh?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Tue Oct 12, 2010 5:33 pm 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
I tend to leave the page open for a while ( dont ask me why ) I thought others may do the same and it would be handy if it refreshed. I dont want all the page, just the banner.

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Tue Oct 12, 2010 6:17 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I think you'll either have to have the whole page on a refresh, or write some javascript to reload just that image periodically.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Mon Nov 15, 2010 1:15 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Hi Paul;

Just revisting a few 'old' threads and found you'd done nothing about this one.

As you also have a webcam image there - why not 'refresh' both !

Code:
    <div id="main"> <a name="TemplateInfo"></a>
      <h1>Welcome to Brampton Climatological Weather Station</h1>
      <p class="style3"><a href="http://www.bramptonweather.co.uk/location.html">117m A.S.L - NY531603 - N54:56:09, W2:43:59 </a></p>
      <p class="style3"><span class="textbox style2">Recording the local weather conditions every day   at 0900hrs (GMT). This data is collated and transmitted to the Met Office each day via the O.W.L system. </span><span class="style2">Using Met Office equipment backed up by a Davis Vantage Pro2 Automatic Weather Station. Data is updated every few seconds. Also home of the<a href="http://forum.bramptonweather.co.uk/"> Cumbria Weather Forum.</a></span></p>
      <p class="style3"><img src="http://www.bramptonweather.co.uk/wl/webcamimage.jpg" alt="Live Webcam" width="360" height="288" id="webcam" name="webcam" /><span class="style2"><a href="http://twitter.com/bramptonweather"></a></span><span class="style2"><a href="http://www.iiccp.co.uk/stations/bramptonweather.co.uk/"><img src="images/iiccp.png" width="94" height="94" alt="" /></a></span></p>
      <p class="style3"><img src="http://www.bramptonweather.co.uk/cumulus/banner2.php" alt="Live Weather" width="468" height="70" id="banner" name="banner" /></p>
     <SCRIPT language="JavaScript" type="text/javascript">
      <!--
      var t = 30 // interval in seconds
      cam = "http://www.bramptonweather.co.uk/wl/webcamimage.jpg" // address of cam image
      bann = "http://www.bramptonweather.co.uk/cumulus/banner.php" // address of banner image
      function img_refresh() {
       tmp = new Date();
       tmp = "?"+tmp.getTime()
       document.images["webcam"].src = cam+tmp
       document.images["banner"].src = bann+tmp
       setTimeout("img_refresh()", t*1000)
      }
      img_refresh();
      // -->
      </SCRIPT>
    </div>


... don't forget to get rid of that nasty META page refresh ;)

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Mon Nov 15, 2010 10:19 am 
Offline
User avatar

Joined: Thu Jun 19, 2008 7:45 am
Posts: 281
Location: Brampton, Cumbria, UK
Weather Station: Davis VP2 with solar
Operating System: Windows XP SP3
Thanks - I hadnt done anything as I basically coulndt do it, so gave up. I cant even remember adding a meta refresh - I cant even find that bit of code in my index file ( just switched PC,s so may have beeb lost in the backup).

Anyway - I have copied your code and uploaded the new page this morning. Please let me know if its working OK, looks good at my end

Many thanks :clap: :bash:

_________________
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk | http://www.bramptonweather.co.uk/cumulus |
Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Mon Nov 15, 2010 10:24 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Quote:
... Please let me know if its working OK, looks good at my end

Looking good, doesn't even blink on my broadband speed :clap:

Edit: What is the repeat rate of your webcam ?
Edit #2: 10mins

You may want to lengthen the refresh var to 60 or greater. (the banner shows time to the min with no seconds ;) )

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Sun Nov 21, 2010 10:24 pm 
Offline
User avatar

Joined: Sat Mar 13, 2010 6:49 pm
Posts: 4
Location: Chester, VA
Weather Station: Oregon Scientific
Operating System: Windows 7
Is there a way to add an image to the background of the banner?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Mon Nov 22, 2010 2:30 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Read here: viewtopic.php?f=14&t=120&start=15

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Dec 30, 2010 4:48 pm 
Offline
User avatar

Joined: Wed Dec 29, 2010 6:19 pm
Posts: 6
Location: New Glasgow, Nova Scotia, Canada
Weather Station: Davis VP, WeatherlinkIP
Operating System: Windows XP / WHS
Hi there guys & gals

I must be dumb or something, but I have no understanding of how to get the banner to work or how to write it. Can someone please explain it to a dummy like me.
Thanks for anyones help. :!:

_________________
CWOP Member # - DW2865

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Dec 30, 2010 5:02 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
AllyB1966 wrote:
I must be dumb or something, but I have no understanding of how to get the banner to work or how to write it. Can someone please explain it to a dummy like me.
It might be easier/quicker to get you going if you tell us which part of the instructions you're stuck on?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Dec 30, 2010 6:19 pm 
Offline
User avatar

Joined: Wed Dec 29, 2010 6:19 pm
Posts: 6
Location: New Glasgow, Nova Scotia, Canada
Weather Station: Davis VP, WeatherlinkIP
Operating System: Windows XP / WHS
Steve

Well its kind of all of it, how do I get the banner file set for my site? How do I get the banner as my signature, if I try to use the Wunderground banner link I'm told that its to long, but I've see its use with other users.

Cheers Ally

_________________
CWOP Member # - DW2865

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Dec 30, 2010 6:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
AllyB1966 wrote:
how do I get the banner file set for my site?

It pretty much works 'as is'. If you put it in the same place on your web site as your realtime.txt file, the only part you need to change to begin with is to put your site name in:

$SITE['sitename'] = "YOUR SITE NAME";

Quote:
How do I get the banner as my signature


Edit your signature in the user control panel to include the following:

Code:
[img]http://path.to.your.banner.php[/img]

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Dec 30, 2010 7:37 pm 
Offline
User avatar

Joined: Wed Dec 29, 2010 6:19 pm
Posts: 6
Location: New Glasgow, Nova Scotia, Canada
Weather Station: Davis VP, WeatherlinkIP
Operating System: Windows XP / WHS
Thanks Steve

It helps if you understand the language.

Ally

_________________
CWOP Member # - DW2865

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Thu Aug 18, 2011 8:59 pm 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
Is that it?
I read through this whole thread hoping to find the answer to my query which looks like it's the same as Ally's and there is no answer :o

As you may have guessed, I've just registered to reply to this thread and find the answer to my dumb question. :lol:

Which is... How do I add the banner as my forum sig?
I have web hosting and web name but only use it to upload and provide web links.
I have absolutely no idea how a web site works, 'scripts' and 'php' mean nothing to me, I just know how to upload to my space via FTP and link to said item.

So how do I get a real time banner working on my favourite forum?
What and where do I need to upload to my 'site' in order to have a forum sig?
What do I need to configure in Cumulus?

Thanks, and sorry for grave digging ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 286 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 20  Next

All times are UTC


Who is online

Users browsing this forum: laulau and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group