Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Cumulus PHP-GD Banner

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: Cumulus PHP-GD Banner

Post by Sadgit »

TNETWeather wrote:Another way is to use .htaccess and mod_rewrite...

https://cumulus.hosiene.co.uk/viewtopic.p ... ccess#p514

Code: Select all

RewriteRule ^/?banner.png$ /banner.php [L]
Then the image tag points to what they like, a valid image url

Code: Select all

[img]http://cumulus.tnetweather.com/banner.png[/img]
What am I doing wrong here? I just cannot get it to work at all.. used .htaccess and mod_rewrite before onmy site so know they work... when I put http://weather.depravityarena.co.uk/banner.gif (modified the script for gif not pnp) I get page not found but http://weather.depravityarena.co.uk/banner.php works fine..

any ideas greatly appreciated

Cheers
Mark
TNETWeather

Re: Cumulus PHP-GD Banner

Post by TNETWeather »

I have an account with hostgator, but I can't try it right now.

Will give it a shot as soon as I can though. I've had some "issues" with some of their configurations on somethings in the past.
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: Cumulus PHP-GD Banner

Post by Sadgit »

ah cheers.. will give it another blast today to see if I have done something wrong
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: Cumulus PHP-GD Banner

Post by Sadgit »

BINGO... sorted it. I needed the "RewriteEngine On" in my .htaccess file

just had a look at another .htaccess file I have for my forums :)
Cheers
Mark
User avatar
dane
Posts: 417
Joined: Wed 10 Sep 2008 2:15 pm
Weather Station: Rosenborg 68700
Operating System: Win10 Ult., 64-bit, RaspberryPi
Location: Gilleleje, Denmark

Re: Cumulus PHP-GD Banner

Post by dane »

Don't know what happened to my banner: all of a sudden I get squares rather than centigrade "circles" :?:
I am using TTF fonts. Re-uploaded fonts from Windows Vista fonts library, but no change.
Ib
TNETWeather

Re: Cumulus PHP-GD Banner

Post by TNETWeather »

Seems to be having issues with the Degree Symbol.

What happens if you change the line:

Code: Select all

// Print Temp
$text = ret_value("temp") . '°' . ret_value("tempunit");
to

Code: Select all

// Print Temp
$text = ret_value("temp") . '°' . ret_value("tempunit");
User avatar
dane
Posts: 417
Joined: Wed 10 Sep 2008 2:15 pm
Weather Station: Rosenborg 68700
Operating System: Win10 Ult., 64-bit, RaspberryPi
Location: Gilleleje, Denmark

Re: Cumulus PHP-GD Banner

Post by dane »

Thank you, Kevin. That seemed to cure the problem (for reasons beyond my understanding...)
Ib
Ib
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: Cumulus PHP-GD Banner

Post by aadal »

TNETWeather wrote:Seems to be having issues with the Degree Symbol.

What happens if you change the line:

Code: Select all

// Print Temp
$text = ret_value("temp") . '°' . ret_value("tempunit");
to

Code: Select all

// Print Temp
$text = ret_value("temp") . '°' . ret_value("tempunit");

Thanks, now it working here too... :D
  • Windows Vista
Image

Image
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: Cumulus PHP-GD Banner

Post by Sadgit »

For some reason my banner has stopped updating and the last error in my web error log is

[12-Jan-2009 19:12:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/sadgit/public_html/weather/banner.php:337) in /home/sadgit/public_html/weather/banner.php on line 190

Anyone have a clue what has happened?


EDIT - Hmm looks like my realtime.txt hasn't updated since then.. Will have to wait till I get home for a butchers.

Cheers
Mark
Sadgit
Posts: 192
Joined: Sun 04 Jan 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Re: Cumulus PHP-GD Banner

Post by Sadgit »

If I had brains I would be dangerous. For some reason 2 days ago I unticked the "enable realtime" check box...
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus PHP-GD Banner

Post by steve »

Sadgit wrote:If I had brains I would be dangerous. For some reason 2 days ago I unticked the "enable realtime" check box...
Hmm. Maybe this calls for a couple of little LEDs that light when you have the standard auto update and realtime set? And you could click them to set and unset? Getting carried away now...

Steve
goldrush
Posts: 183
Joined: Mon 27 Oct 2008 4:50 pm
Weather Station: Fine Offset WH1081
Location: Aberdeenshire, Scotland
Contact:

Re: Cumulus PHP-GD Banner

Post by goldrush »

What might be useful for Cumulus 2 is to consider an led, flashing when ftp/realtime uploads are actually in progress.

I find that my webhost gets confused when I try to manually ftp something into a different directory, when Cumukus is doing it's stuff. Surprisingly, I have another auto ftp program running into yet another directory, which does not suffer the same sort of problems.
(Cumulus and it also work quite happily together uploading ostensibly at the same time)
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus PHP-GD Banner

Post by steve »

goldrush wrote:What might be useful for Cumulus 2 is to consider an led, flashing when ftp/realtime uploads are actually in progress.
I did think that as an extension of the LED idea, it could flash when an upload is in progress, yes. I'm not sure there's much point doing that for realtime uploads, though, the upload would be over before the LED had chance to flash. And there is the status bar already, of course.

Steve
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Cumulus PHP-GD Banner

Post by beteljuice »

You are refering to Cumulus status bar, what about minimised icon flash ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus PHP-GD Banner

Post by steve »

beteljuice wrote:You are refering to Cumulus status bar, what about minimised icon flash ?
You mean: make the icon flash during uploads? Could do, I suppose as an option. I'd find it annoying, personally.

Steve
Post Reply