Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.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
Cumulus PHP-GD Banner
Moderator: daj
Re: Cumulus PHP-GD Banner
.
Version 3.0 released
This version uses a new internal method to obtain the realtime.txt files and uses the new extended format.
You need to be using Cumulus 1.8.2 Beta or higher to use this version.
You can download the script from my project page (in my signature below).
Version 3.0 released
This version uses a new internal method to obtain the realtime.txt files and uses the new extended format.
You need to be using Cumulus 1.8.2 Beta or higher to use this version.
You can download the script from my project page (in my signature below).
- Paul C
- Posts: 538
- Joined: Thu 19 Jun 2008 7:45 am
- Weather Station: Davis VP2 with solar
- Operating System: Windows 10
- Location: Brampton, Cumbria, UK
- Contact:
Re: Cumulus PHP-GD Banner
Ive put all the known cumulus banners on one topic, if I have missed anybody please let me know.
https://cumulus.hosiene.co.uk/viewtopic.php?f=10&t=206
https://cumulus.hosiene.co.uk/viewtopic.php?f=10&t=206
-
- Posts: 75
- Joined: Mon 22 Sep 2008 10:18 pm
- Weather Station: Davis VP2
- Operating System: Windows 10
- Location: Renton, Washington
- Contact:
Re: Cumulus PHP-GD Banner
For some reason I can not get my True Type Fonts to work. This is the directory where they are at. I have it set to no because when I set it to yes it is telling me it contains errors. Any help would be greatly appreciated.
Here is my settings as of now;
Chuck
Code: Select all
/virtual/users/e14497-14796/web/graphs/jp/ttf/
Code: Select all
$SITE['fontdir'] = "web/graphs/jp/ttf/"; # must contain ttf font files!
$SITE['usettf'] = "no"; # Set to No to use default fonts
Re: Cumulus PHP-GD Banner
If you know the hard path (non-relative) it is most likely easier to use it, instead of a relative path.
If you want to use a relative path, then it has to be relative of where the banner.php script resides.
Just guessing...
If your banner is addressable via the web as:
http://www.chucksweather.com/cumulus/banner.php
Then the relative path to the banner.php script to the fonts would be:
Code: Select all
$SITE['fontdir'] = "/virtual/users/e14497-14796/web/graphs/jp/ttf/";
Just guessing...
If your banner is addressable via the web as:
http://www.chucksweather.com/cumulus/banner.php
Then the relative path to the banner.php script to the fonts would be:
Code: Select all
$SITE['fontdir'] = "../graphs/jp/ttf/";
-
- Posts: 75
- Joined: Mon 22 Sep 2008 10:18 pm
- Weather Station: Davis VP2
- Operating System: Windows 10
- Location: Renton, Washington
- Contact:
Re: Cumulus PHP-GD Banner
Kevin,
I will give it a shot and see what happens. Thanks for the quick response.
Chuck
I will give it a shot and see what happens. Thanks for the quick response.
Chuck
-
- Posts: 75
- Joined: Mon 22 Sep 2008 10:18 pm
- Weather Station: Davis VP2
- Operating System: Windows 10
- Location: Renton, Washington
- Contact:
Re: Cumulus PHP-GD Banner
Thanks Kevin got that to work.
Chuck
Chuck
Re: Cumulus PHP-GD Banner
Hi, I have tested the banner and it works like it should do.
But, in Norwegian we have the letters ÆØÅ-æøå and they will not show correct in the banner.
I know this can be fixed by using
Can you implement this in the php code?
Here is how the banner looks like using this text:
But, in Norwegian we have the letters ÆØÅ-æøå and they will not show correct in the banner.
I know this can be fixed by using
Code: Select all
['charset'] = "utf-8";
Here is how the banner looks like using this text:
Code: Select all
$SITE['sitename'] = "Æ Ø Å æ ø å";
Re: Cumulus PHP-GD Banner
Saw this on a Jpgraph forum...
This means you could add each greek letter one at a time like:In a similair way this can be used to show Greek letters, for example "β" (beta) is displayed by
$beta = sprintf('&#%04d;',hexdec('03B2'));
Code: Select all
$SITE['sitename'] = "Mesa AZ USA - TNET Weather";
// Add first greek letter
$SITE['sitename'] .= sprintf('&#%04d;',hexdec('03B2'));
// Add second greek letter
$SITE['sitename'] .= sprintf('&#%04d;',hexdec('03B3'));
// Add third greek letter
$SITE['sitename'] .= sprintf('&#%04d;',hexdec('03B4'));
You do not have the required permissions to view the files attached to this post.
Re: Cumulus PHP-GD Banner
Sorry, didn't work. The banner just shows the decimal code for the letter wanted.
Shows this in banner: "Ø"
Reference:
Code: Select all
$SITE['sitename'] = sprintf('&#%04d;',hexdec('00D8'));
Reference:
Code: Select all
Ø 216 Ø 00D8 Ø Ø LATIN CAPITAL LETTER O WITH STROKE
Re: Cumulus PHP-GD Banner
Might be your web host's version of GD or something else in its PHP version??
I used your exact syntax code:
And got:
I used your exact syntax code:
Code: Select all
$SITE['sitename'] = sprintf('&#%04d;',hexdec('00D8'));
Re: Cumulus PHP-GD Banner
Might help if I could see the real code you are using... but you don't have your website listed in your profile info.
Re: Cumulus PHP-GD Banner
My banner with the code:
Code: Select all
#---------------------------------------------------------------------------
$SITE['format'] = "png"; # Options: jpeg gif png
$SITE['dateiso'] = "no";
$SITE['sitename'] = sprintf('&#%04d;',hexdec('00D8'));
#---------------------------------------------------------------------------
http://www.mphgk.com/met/testbanner.php
Re: Cumulus PHP-GD Banner
Using encodings like that apparently requires the use of FreeType Support and the use of TTF fonts.
You are not using TTF fonts:
When I turned off TTF support, I got the same output as you are showing. So apparently the standard GD fonts and its library does not support what you are trying to do.
Looks like the only solution would be to make sure your webhosts supports FreeType support and load some of the TTF fonts so you can use them. Then it appears to work okay.
You are not using TTF fonts:
Code: Select all
#---------------------------------------------------------------------------
$SITE['fontdir'] = "fonts/"; # must contain ttf font files!
$SITE['usettf'] = "no"; # Set to No to use default fonts
#---------------------------------------------------------------------------
Looks like the only solution would be to make sure your webhosts supports FreeType support and load some of the TTF fonts so you can use them. Then it appears to work okay.