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

digital numbers form and types

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

digital numbers form and types

Post by dimitris vichos »

I've noticed that digital numbers appear in three different forms without I make some changes.

Image

Image

Image

in the wind gauge i see Right from the numbers the letter 'B'. There are different types of digital numbers;

Image
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

Do you have a link to the problem page?
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

The fonts come through OK for me with Chrome & IE9.

I think the corruption on the Wind Direction gauge is due to the UTF-8 script file (steelseries.min.js) being used on an iso-8859-7 page.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: digital numbers form and types

Post by water01 »

As per Mark's reply I had the same problem on a site I maintain for someone and ro stop this happenning I changed

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
to

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
David
Image
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

if i choose

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

my page-the greek letters only- apears like this

Image
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

Did you also save all the files in UTF-8 format?
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

the gauges js and the language js in utf-8
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

and the HTML file?
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

you mean this?


<head>
<LINK REL="SHORTCUT ICON"
HREF="http://snowguide.gr/nea-moudania/images/anem.gif">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

if i set all in utf-8 and also the language.js and the gauges.js the greek characters apears wrong..
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

No, I meant did you save the HTML file with UTF-8 encoding (as well as the meta tag)
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

I've done it.the greek characters appears wrong. only with the iso-8859-7 code the greek characters appears normal but with the "B" as the picture
You do not have the required permissions to view the files attached to this post.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

OK, I just took your HTML page, saved it in UTF-8 format on my website (with a UTF-8 meta tag) and it works fine. The Greek characters are OK, and the gauges are OK. ;)
http://weather.wilmslowastro.com/greek.htm

I have left teh gauges in English because it it using my 'live' copies.

I do notice that you have included the language.js and gauges.js script files twice - this will be causing you some problems.

So honest folks UTF-8 encoding does work for all languages, that is why it is the default encoding for HTML5 - it is universal.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: digital numbers form and types

Post by dimitris vichos »

Image

another font type.this happens only with opera browser finaly.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: digital numbers form and types

Post by mcrossley »

If you are not using the digital font, then the code just declares the font as "NNpx sans-serif", so it looks like Opera has an odd font defined as the default 'sans-serif'. Have you over-ridden the browser 'default' font settings?
Post Reply