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
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
Trialling of New Script
Moderator: daj
- hans
- Posts: 171
- Joined: Sun 18 Jan 2009 9:27 pm
- Weather Station: wh1080 /ws4000(alecto)
- Operating System: Windows 10 64 bit
- Location: leiden,Netherlands
- Contact:
Re: Trialling of New Script
thanks again for your help,but it is still not showing lines.
i must leave now,
so if it is any help,i zipped my indexpage
http://home.xmsnet.nl/hanmir/indexT.zip
i must leave now,
so if it is any help,i zipped my indexpage
http://home.xmsnet.nl/hanmir/indexT.zip
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
Hi,
I have quickly inserted the code into your indexT.htm page that you supplied, hope this works.
Regards
I have quickly inserted the code into your indexT.htm page that you supplied, hope this works.
Regards
You do not have the required permissions to view the files attached to this post.
- 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: Trialling of New Script
Please note (as was pointed out to me
)
Beaufort is NOT applied to gust conditions, only average values !
Beaufort is NOT applied to gust conditions, only average values !
......................Imagine, what you will KNOW tomorrow !
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
Noted. Thanks for bringing this to my attention. I was simply following instructions put to me in a request. I thought to myself that if I didnt put something about the difference, someone would more than likely point it out to me so, I saved them the hassle.beteljuice wrote:Please note (as was pointed out to me)
Beaufort is NOT applied to gust conditions, only average values !
In the original script, I used The Latest Speed. I realise this is not the average speed but It suits my needs.
Regards
Jason
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
With help from the Beteljuice!, I think that the script problem may be solved.
Uploaded to this message, is the updated version.
Regards
Jason
Uploaded to this message, is the updated version.
Regards
Jason
You do not have the required permissions to view the files attached to this post.
- hans
- Posts: 171
- Joined: Sun 18 Jan 2009 9:27 pm
- Weather Station: wh1080 /ws4000(alecto)
- Operating System: Windows 10 64 bit
- Location: leiden,Netherlands
- Contact:
Re: Trialling of New Script
hey,thanks guys.it works!!!
been cracking my mind all day at work what to try(all wrong of course
)
so what was the nag in this one?
that replace function was not in the laundry thingy.what does that do?
(good way learning this)
as the beetlejuice said,gust is not right,so i changed that for the average speed(wspeed),i only took gust for the testing.
if i want to change the colour,i can replace black eg in blue?(edit: working)and not use colourcodes?(#FFFFFF)
again,thanks
(think i go tinker a bit with it,see how it goes
)
been cracking my mind all day at work what to try(all wrong of course
so what was the nag in this one?
that replace function was not in the laundry thingy.what does that do?
(good way learning this)
as the beetlejuice said,gust is not right,so i changed that for the average speed(wspeed),i only took gust for the testing.
if i want to change the colour,i can replace black eg in blue?(edit: working)and not use colourcodes?(#FFFFFF)
again,thanks
(think i go tinker a bit with it,see how it goes
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
My guess would be, that as when your data is displayed, it places a comma in the data, my script could not understand the data being presented.
So Beteljuice produced an addon for my script, so that it replaces or removes the comma from the data, so that my script can produce a description for the data values.
If I recall, I did originally use Wind Speed as the data values to be used, I also believe that it was yourself who at the time, wanted to use the gust data. What I am saying is that, I was using the correct data value from the beginning.
I hope the descriptions are okay, they took some time to come up with.
Pleased to of been of help.
If I can help in the future, please do not hesitate to contact me.
Regards
Jason
So Beteljuice produced an addon for my script, so that it replaces or removes the comma from the data, so that my script can produce a description for the data values.
If I recall, I did originally use Wind Speed as the data values to be used, I also believe that it was yourself who at the time, wanted to use the gust data. What I am saying is that, I was using the correct data value from the beginning.
I hope the descriptions are okay, they took some time to come up with.
Pleased to of been of help.
If I can help in the future, please do not hesitate to contact me.
Regards
Jason
- hans
- Posts: 171
- Joined: Sun 18 Jan 2009 9:27 pm
- Weather Station: wh1080 /ws4000(alecto)
- Operating System: Windows 10 64 bit
- Location: leiden,Netherlands
- Contact:
Re: Trialling of New Script
yes,you did use the right value from the start(avg windspeed).
only thing was i didn,t have #wlatest on my page ,so then in my ignorance took gust.
still i can use this also for gust speed,whith some other lines.
eg "force 9 - it's wiser to take your laundry in"
only thing was i didn,t have #wlatest on my page ,so then in my ignorance took gust.
still i can use this also for gust speed,whith some other lines.
eg "force 9 - it's wiser to take your laundry in"
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
Jason
- 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: Trialling of New Script
Yup, persactly right - Cumulus webtags obey the 'language' of the pc they are on, In this case "," (comma) as a decimal separator. Also Cumulus webtags as such are neither string nor number !, it is upto the coding language you use to make a distinction.... My guess would be, that as when your data is displayed, it places a comma in the data, my script could not understand the data being presented. ...
JavaScript does not understand a comma as a decimal point, so we had to make sure the initial value was treated as a string (abcd) if a comma existed change for a "'.", then convert the string back to a number (123), then you can do meaningful comparrisons on it's numeric value rather it's ASCii order
This problem doesn't arise in the realtime.txt, because all values are 'code friendly'. ie 123.4.
(I think !)
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Trialling of New Script
True - but note that some of the tags are repeated with 'always full stop' versions:beteljuice wrote:Cumulus webtags obey the 'language' of the pc they are on, In this case "," (comma) as a decimal separator.
<#RCdew> <#RCheatindex> <#RChum> <#RCinhum> <#RCintemp> <#RCpress> <#RCpressTH>
<#RCpressTL> <#RCrfall> <#RCrrate> <#RCrrateTM> <#RCtemp> <#RCtempTH> <#RCtempTL>
<#RCwchill> <#RCwgust> <#RCwgustTM> <#RCwspeed>
Steve
- hans
- Posts: 171
- Joined: Sun 18 Jan 2009 9:27 pm
- Weather Station: wh1080 /ws4000(alecto)
- Operating System: Windows 10 64 bit
- Location: leiden,Netherlands
- Contact:
Re: Trialling of New Script
so if i understand it correctly,
simply said it's like the difference in currency notations regarding , or .
i believe the US uses usd1,000.00
netherlands uses euro1.000,00
if you would fill that in blindly,it would give weird accounts.
you made a thingy that automaticly converts it to the right notation(if not ,i should just stick to hardware,that's more straight forward
simply said it's like the difference in currency notations regarding , or .
i believe the US uses usd1,000.00
netherlands uses euro1.000,00
if you would fill that in blindly,it would give weird accounts.
you made a thingy that automaticly converts it to the right notation(if not ,i should just stick to hardware,that's more straight forward
- 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: Trialling of New Script
I must read the help file more oftensteve wrote:True - but note that some of the tags are repeated with 'always full stop' versions:
They weren't there the last time I looked
Means I got some code to rewrite (simplify) now
......................Imagine, what you will KNOW tomorrow !
-
risiss
- Posts: 80
- Joined: Sun 05 Jul 2009 2:15 pm
- Weather Station: Thermor 265nc
- Location: Hebertville Quebec
- Contact:
Re: Trialling of New Script
thanks jason for that little wind script...(i may try the others too)
ive tranlated it to french (and added the sea conditions) on my web site http://www.meteoduquebec.qc.ca/hebertville/ just under the wind dials
cheers
carl
ive tranlated it to french (and added the sea conditions) on my web site http://www.meteoduquebec.qc.ca/hebertville/ just under the wind dials
cheers
carl
Ma station meteo http://meteoduquebec.ift.fr
-
6719jason
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Trialling of New Script
No problem. Glad to be of service!risiss wrote:thanks jason for that little wind script...(i may try the others too)
ive tranlated it to french (and added the sea conditions) on my web site http://www.meteoduquebec.qc.ca/hebertville/ just under the wind dials
cheers
carl
Nice website you have there!
Jason
http://www.weeleyweatherstation.info