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 4019) - 03 April 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

Cloud-based reversed in meters and feet

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Cloud-based reversed in meters and feet

Post by Freidenker77 »

Hello community,

I have the following problem.

On my website (http://www.info-wetter-pohlheim.de/wxindex.php) is in the instrument view (http://www.info-wetter-pohlheim.de/wxssgauges.php) are the values of the cloud base in (m) and (ft) reversed. How can I change that it appears right side up on the unit.

in Annex my wxssgauges.php and gauges.js.

I hope you can help me there. Thanks in advance

LG, Freidenker
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cloud-based reversed in meters and feet

Post by mcrossley »

In your jason file you are using the web tag that appends the cloudbase unit to the value eg. "200 m", what you want are two fields in the JSON...

"cloudbase":"<#cloudbasevalue>",
"cloudbaseunit":"<#cloudbaseunit>"

It should/may work then, at least you will be a step closer.
Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Re: Cloud-based reversed in meters and feet

Post by Freidenker77 »

Good morning,
I now have the additions to the "steelseriesVWSjson.php" (would you please as we'll see in). Unfortunately maintenance Does not work for me. Or is even far a fault?

Regards, Freidenker
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cloud-based reversed in meters and feet

Post by mcrossley »

Your source data has not changed, the JSON still contains a single value for cloudbase...

Code: Select all

cloudbase: "313 m",
rather than the expected...

Code: Select all

cloudbase: "313",
cloudbaseUnit: "m",
You do not have the required permissions to view the files attached to this post.
Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Re: Cloud-based reversed in meters and feet

Post by Freidenker77 »

Hi,

I have now changed the entry. Still has not brought the right effect. On the contrary, now vote none of the work height values agree with the cloud base indicated by Cumulus.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cloud-based reversed in meters and feet

Post by mcrossley »

You still do not have it right!

You have...

Code: Select all

CloudbaseUnit: ""
Cloudbasevalue: "622"
Note, no value for the unit, and the values is wrong.

It should be...

Code: Select all

cloudbaseUnit: "m"
cloudbasevalue: "622"
Note, supplied a unit, and the case of the values is correct.
Post Reply