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 wind direction problem with <#currentwdir> tag

Discussion specific to Davis weather stations
Post Reply
ntinos
Posts: 18
Joined: Thu 24 Nov 2011 8:11 pm
Weather Station: Davis
Operating System: Windows XP
Location: Greece

Cumulus wind direction problem with <#currentwdir> tag

Post by ntinos »

Hi
I have download the newest version and i make some tags,the tag
<#currentwdir> i will see the direction with name N-NNE-NE-ENE-E like console e.t.c
The program cannot read the NNE-ENE-ESE-SSE-SSW-WSW-WNW-NNW e.t.c only read the N-NE-E-SE-S-SW-W-NW
There is possibility the solved this error ?

Thank you

Edit: I tried this tag <#wdir> average 10 minute,and work fine,but i would like to have the Current (latest) wind bearing .
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 wind direction problem with <#currentwdir> tag

Post by steve »

ntinos wrote:The program cannot read the NNE-ENE-ESE-SSE-SSW-WSW-WNW-NNW e.t.c only read the N-NE-E-SE-S-SW-W-NW
There is possibility the solved this error ?
Sorry, I don't understand. What do you think the error is? Cumulus doesn't read the output from the web tag. I don't think I've changed the code for that web tag for a long time.
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 wind direction problem with <#currentwdir> tag

Post by beteljuice »

The program cannot read the NNE-ENE-ESE-SSE-SSW-WSW-WNW-NNW e.t.c only read the N-NE-E-SE-S-SW-W-NW
Do you mean you are using JavaScript to 'decode' ?

If so, current direction can only be resolved to what your wx kit gives out - although average could give a figure in the middle.
Image
......................Imagine, what you will KNOW tomorrow !
ntinos
Posts: 18
Joined: Thu 24 Nov 2011 8:11 pm
Weather Station: Davis
Operating System: Windows XP
Location: Greece

Re: Cumulus wind direction problem with <#currentwdir> tag

Post by ntinos »

steve wrote:
ntinos wrote:The program cannot read the NNE-ENE-ESE-SSE-SSW-WSW-WNW-NNW e.t.c only read the N-NE-E-SE-S-SW-W-NW
There is possibility the solved this error ?
Sorry, I don't understand. What do you think the error is? Cumulus doesn't read the output from the web tag. I don't think I've changed the code for that web tag for a long time.
Ηi steve
I mean if my console show wind NNE or ENE e.t.c with this tag <#currentwdir> do not can see ,and output show nothing.Work fine only if my console it show N-NE-E-SE-S-SW-W-NW

With this tag <#wdir> can read example everything wind bearing,but it is average.
ntinos
Posts: 18
Joined: Thu 24 Nov 2011 8:11 pm
Weather Station: Davis
Operating System: Windows XP
Location: Greece

Re: Cumulus wind direction problem with <#currentwdir> tag

Post by ntinos »

beteljuice wrote:
The program cannot read the NNE-ENE-ESE-SSE-SSW-WSW-WNW-NNW e.t.c only read the N-NE-E-SE-S-SW-W-NW
Do you mean you are using JavaScript to 'decode' ?

If so, current direction can only be resolved to what your wx kit gives out - although average could give a figure in the middle.
No java script ,i make php script,for this reason i make the script with tags,and only this <#currentwdir> do not have correlation with console at all bearing.
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 wind direction problem with <#currentwdir> tag

Post by steve »

ntinos wrote:I mean if my console show wind NNE or ENE e.t.c with this tag <#currentwdir> do not can see ,and output show nothing.Work fine only if my console it show N-NE-E-SE-S-SW-W-NW
Oh, I see. I can't think how that would happen. All it does is take the current wind bearing (as shown on the Cumulus main screen and in the <#bearing> web tag, and convert it to a compass point. It does the same thing for the average direction. Let me do some tests...

Edit: What does the Cumulus screen show?
Steve
ntinos
Posts: 18
Joined: Thu 24 Nov 2011 8:11 pm
Weather Station: Davis
Operating System: Windows XP
Location: Greece

Re: Cumulus wind direction problem with <#currentwdir> tag

Post by ntinos »

steve wrote:
ntinos wrote:I mean if my console show wind NNE or ENE e.t.c with this tag <#currentwdir> do not can see ,and output show nothing.Work fine only if my console it show N-NE-E-SE-S-SW-W-NW
Oh, I see. I can't think how that would happen. All it does is take the current wind bearing (as shown on the Cumulus main screen and in the <#bearing> web tag, and convert it to a compass point. It does the same thing for the average direction. Let me do some tests...

Edit: What does the Cumulus screen show?
Ok Steve ,thank you
The Cumulus screen show very correct like my console bearing.
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 wind direction problem with <#currentwdir> tag

Post by steve »

It's working fine for me:
2012-10-26 16_07_31-Cumulus.png
There's nothing in the code that could stop it working for the intermediate compass positions, it just converts the bearing to a number from 0 to 15 and then indexes an array. I'm afraid I have no idea why it doesn't work for you. Are you using a strings.ini file? Can you attach your file with the web tag in it?
You do not have the required permissions to view the files attached to this post.
Steve
ntinos
Posts: 18
Joined: Thu 24 Nov 2011 8:11 pm
Weather Station: Davis
Operating System: Windows XP
Location: Greece

Re: Cumulus wind direction problem with <#currentwdir> tag

Post by ntinos »

Hi Steve
Sorry my mistake i do not used a strings.ini file
Now all is fine.
Thanks a lot.
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 wind direction problem with <#currentwdir> tag

Post by steve »

ntinos wrote:Sorry my mistake i do not used a strings.ini file
You don't need to use a strings.ini file, only if you want to change the text. But if that has apparently fixed it for you, that's fine, even if I don't really understand how.
Steve
Post Reply