Cumulus PHP-GD Banner
Posted: Sun 05 Oct 2008 3:13 am
Cumulus data generated Graphic Banner
I played around a bit with some of the existing banner php scripts out there and got them to work, but ended up just writing one from scratch. This is basically because the other scripts have lots of stuff in them that would not be supported and it will be easier to just build from this one.
This is a simple PHP banner script that uses standard GD and the default fonts (5 of them) that come with the package. I tested this on a PHP5 based server, so I'm not sure if it will work with PHP4.
This script generates an image each time it is called by reading the current realtime.txt file that is on the server.
Sample Output:
It was very kind of Mother Nature to drop some rain so that I could for the first time test Cumulus's recording of rain...
The script is a single script, needs no images to work and uses standard GD (no ttf fonts).
If the script is used in the same web directory that your realtime.txt file is located, you won't need to make any changes except if you use different units for temp, rain, wind and of course you will want to change the station name to yours.
The version number which is not send out in the realtime.txt file is also a manual setting in the script.
Source and PDF Instructions
Unfortunately the original Coder of this banner (Kevin Reed) passed away in 2018 and his website was closed so the links below no longer work. I had backup copies of the source an instructions which I have made available in the topic below.
viewtopic.php?p=164850#p164850
Details below are no longer valid but I have left the topic intact in case there are any comments by other Users that help in the implementation.
Project Page and Downloads
http://cumulus.tnetweather.com/projects/phpggbanner
Collection of other banners in use:
http://cumulus.tnetweather.com/projects ... er/gallery
I played around a bit with some of the existing banner php scripts out there and got them to work, but ended up just writing one from scratch. This is basically because the other scripts have lots of stuff in them that would not be supported and it will be easier to just build from this one.
This is a simple PHP banner script that uses standard GD and the default fonts (5 of them) that come with the package. I tested this on a PHP5 based server, so I'm not sure if it will work with PHP4.
This script generates an image each time it is called by reading the current realtime.txt file that is on the server.
Sample Output:
It was very kind of Mother Nature to drop some rain so that I could for the first time test Cumulus's recording of rain...
The script is a single script, needs no images to work and uses standard GD (no ttf fonts).
If the script is used in the same web directory that your realtime.txt file is located, you won't need to make any changes except if you use different units for temp, rain, wind and of course you will want to change the station name to yours.
The version number which is not send out in the realtime.txt file is also a manual setting in the script.
Source and PDF Instructions
Unfortunately the original Coder of this banner (Kevin Reed) passed away in 2018 and his website was closed so the links below no longer work. I had backup copies of the source an instructions which I have made available in the topic below.
viewtopic.php?p=164850#p164850
Details below are no longer valid but I have left the topic intact in case there are any comments by other Users that help in the implementation.
Project Page and Downloads
http://cumulus.tnetweather.com/projects/phpggbanner
Collection of other banners in use:
http://cumulus.tnetweather.com/projects ... er/gallery