Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 26, 2013 7:37 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 ... 9, 10, 11, 12, 13, 14, 15 ... 20  Next
Author Message
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 7:18 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
steve70 wrote:
Which is... How do I add the banner as my forum sig?

I thought I answered that question above?

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

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


If the part that you're stuck on is getting the code on to your web site - have you read the instructions that come with the code?

All you need to configure in Cumulus is to get it to upload a realtime.txt file to your web site. Do you have a working web site?

It's hard to help when you don't explain what you've done already and which parts of the various instructions you don't understand. The banner script is an 'add-on' to a working Cumulus web site (although as a minimum it only needs the realtime.txt file part of that).

I'm guessing from what you say that you don't already have Cumulus uploading to a web site? If that's the case, have a look at the help file ('Creating a Web Site') and in the wiki - http://wiki.sandaysoft.com/a/Website_setup

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 8:59 am 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
steve wrote:
steve70 wrote:
Which is... How do I add the banner as my forum sig?

I thought I answered that question above?

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

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


If the part that you're stuck on is getting the code on to your web site - have you read the instructions that come with the code?

All you need to configure in Cumulus is to get it to upload a realtime.txt file to your web site. Do you have a working web site?

It's hard to help when you don't explain what you've done already and which parts of the various instructions you don't understand. The banner script is an 'add-on' to a working Cumulus web site (although as a minimum it only needs the realtime.txt file part of that).

I'm guessing from what you say that you don't already have Cumulus uploading to a web site? If that's the case, have a look at the help file ('Creating a Web Site') and in the wiki - http://wiki.sandaysoft.com/a/Website_setup


Sorry if I wasn't clear.
I have web space but no working web site.
So far I have uploaded banner.php and realtime.txt and get this.

Image

Cumulus is obviously not uploading any data to it so I'll check out that link on how to create a web site.

Thanks for you help


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 9:16 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
If you just want a realtime.txt for your banner, you can avoid most of the setup instructions. Just fill in your ftp details (Host name/directory/username/password) and don't tick 'auto update', tick the three realtime boxes. The sometimes tricky part is working out what to put in the 'directory' box.

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 9:53 am 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
I've just found out what I was doing wrong.

I hadn't realised that realtime.txt should just be a blank txt file. I'd downloaded realtimelog-2.0.txt thinking it was the realtime.txt file and renamed it as such and it obviously confused things.
Then I tried uploading a blank .txt file and it now works.
All I need to do now is work out how to use the nice fonts. :D

Thanks again Steve


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 9:59 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
steve70 wrote:
I've just found out what I was doing wrong.

I hadn't realised that realtime.txt should just be a blank txt file.

Well... actually realtime.txt is a file containing all kinds of data, like this: http://sanday.org.uk/weather/realtime.txt

Cumulus re-creates it on your PC, and uploads it to your web site periodically, if configured to do so.

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 10:32 am 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
steve wrote:
steve70 wrote:
I've just found out what I was doing wrong.

I hadn't realised that realtime.txt should just be a blank txt file.

Well... actually realtime.txt is a file containing all kinds of data, like this: http://sanday.org.uk/weather/realtime.txt

Cumulus re-creates it on your PC, and uploads it to your web site periodically, if configured to do so.


So I don't need to upload a file called realtime.txt? Cumulus does it?


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 10:51 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
steve70 wrote:
So I don't need to upload a file called realtime.txt? Cumulus does it?

Yes, that's right. The realtime.txt file contains a snapshot of the current data. Cumulus creates the file periodically with new values and uploads it, so that banner.php (or anything else which uses realtime.txt) can read the latest data.

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 3:54 pm 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
Well I've managed to successfully create my banner but now I find out that the forum I want to use it on doesn't support .php extensions.
Is there a way to change it to .png?

Thanks


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 4:07 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
If you changed the extension to a .png, then you would have to configure your web server so that it treated .png files as .php (there's no getting away from the fact that it's a PHP script, which generates a PNG image) and I don't think that would work very well as the server then wouldn't be able to serve real .png files. The whole point of it is that it generates a new image on the fly every time it's invoked, so that whenever someone looks at it, they get the current data.

I suppose you might be able to arrange for it to be invoked periodically by some means, and cache the resulting image in a file, but I don't know exactly how you might do that.

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 4:22 pm 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
Ah, that all sounds rather complicated.
Guess I've done all this for nothing. :D
At least I've learnt a bit :lol:

Thanks for you time


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 4:28 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
steve70 wrote:
Ah, that all sounds rather complicated.


I think that what you actually need is something that doesn't use PHP or run on a server at all; you need something that runs on your PC to generate the image, which Cumulus then uploads. Cumulus could actually generate a banner image itself. It's something I could look into.

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Fri Aug 19, 2011 5:33 pm 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
steve wrote:
I think that what you actually need is something that doesn't use PHP or run on a server at all; you need something that runs on your PC to generate the image, which Cumulus then uploads. Cumulus could actually generate a banner image itself. It's something I could look into.


That would be very useful :)


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Sat Aug 20, 2011 9:49 pm 
Offline

Joined: Thu Aug 18, 2011 8:37 pm
Posts: 8
Location: Londonish
Weather Station: Watson-8681
Operating System: Win7 64bit
Looking back, the OP and creator of this banner has his configured as .png which is what I want.

http://cumulus.tnetweather.com/banner3.png

I'll PM him if I get no replies as to how to achieve this.


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Sun Aug 21, 2011 1:10 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1858
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
If you have a linux / apache server then you can modify (or create) .htaccess file

# You can add the following to the .htaccess file in your Apache Web Server.

RewriteEngine On
RewriteRule ^/?banner.png$ /banner.php [L]

This example tells an incoming request to 'use' banner.php instead of banner.png

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


Top
 Profile  
 
 Post subject: Re: Cumulus PHP-GD Banner
PostPosted: Sat Sep 03, 2011 7:44 pm 
Offline

Joined: Tue Jan 20, 2009 7:31 pm
Posts: 20
Location: Telese Terme Italy
Weather Station: W-8681
Operating System: Windows XP SP3
Hi all, my webserver (Linux) support FreeType.

If i choose:
$SITE['fontdir'] = "fonts/";
$SITE['usettf'] = "yes";

The result is "the image could not be displayed because it contains errors".

Error logs (from webserver):

[Sat Sep 03 21:15:24 2011] [error] [client 79.41.55.217] PHP Warning: imagettfbbox(): any2eucjp(): something happen in /web/htdocs/www.telesemeteo.it/home/banner.php on line 384

[Sat Sep 03 21:15:24 2011] [error] [client 79.41.55.217] PHP Warning: imagettftext(): any2eucjp(): something happen in /web/htdocs/www.telesemeteo.it/home/banner.php on line 443

can someone help me?
Mick

_________________
Image
http://www.telesemeteo.it/


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

All times are UTC


Who is online

Users browsing this forum: Buford T. Justice, RitvalaWX and 0 guests


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