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

Trialling of New Script

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

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

Trialling of New Script

Post by 6719jason »

I have come up with a useful script, which can be easily implemented into your weather station website.

The Script is, one which forecasts the ideal conditions needed for effective drying of Laundry.

A strange script but I am sure that, many will benefit.

Feedback requested and comments welcome.

Jason
You do not have the required permissions to view the files attached to this post.
9Lives
Posts: 7
Joined: Mon 13 Apr 2009 9:48 pm
Weather Station: Watson W-8681
Location: Glenrothes, Fife, Scotland
Contact:

Re: Trialling of New Script

Post by 9Lives »

Hi Jason, there seems to be a slight fault with your page when viewing with Firefox.

I have copied part of the page which shows your email etc over righting some station info
on the middle of the page, it shows fine with Explorer the same txt being at the
bottom right.
You do not have the required permissions to view the files attached to this post.
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

Post by 6719jason »

9Lives wrote:Hi Jason, there seems to be a slight fault with your page when viewing with Firefox.

I have copied part of the page which shows your email etc over righting some station info
on the middle of the page, it shows fine with Explorer the same txt being at the
bottom right.
Good Morning, Thank you for bringing this to my attention, I will correct the slight fault Asap.

Regards

Jason
User avatar
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

Post by hans »

really like these things.
only think i changed was the transparancy,so it is the same as the rest of the page.

if you change:
<p style="text-align: center"><span style="background-color: #C0CAD3">
<font face="Century Gothic" color="#FF0000">Laundry Drying Conditions:

into:
<p style="text-align: center"><span style="text/css"><font color="#3300CC">Laundry
Drying Conditions:

you have no font background colour.
you can change the font colour.
only thing is it also uses the font on your page.

could you also make one of these using the wind speed,then showing "breeze,hurricane etc" or the windforce,like:
0-3km/h=force1?
i know it's showing in the data field.but i would like to have it as a standalone script
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: Trialling of New Script

Post by beteljuice »

hans wrote:...could you also make one of these using the wind speed,then showing "breeze,hurricane etc" or the windforce,like:
0-3km/h=force1?
i know it's showing in the data field.but i would like to have it as a standalone script
If you going to add any great amount of JavaScript to your pages, you should consider playing with any of the several 'AJAX' scripts on the site, which will also allow you update your data without forcing a page refresh ;)

eg. http://www.dickie.webfusion.co.uk/cumul ... index.html

experiment: http://www.dickie.webfusion.co.uk/betel ... spray.html

and a bit of work in progress: http://www.dickie.webfusion.co.uk/betel ... oard2.html

As you can see, you can use JavaScript to control ANY content, including graphics !

Be prepared for many headaches and sleepless nights :lol:
Image
......................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

Post by 6719jason »

hans wrote:really like these things.
only think i changed was the transparancy,so it is the same as the rest of the page.

if you change:
<p style="text-align: center"><span style="background-color: #C0CAD3">
<font face="Century Gothic" color="#FF0000">Laundry Drying Conditions:

into:
<p style="text-align: center"><span style="text/css"><font color="#3300CC">Laundry
Drying Conditions:

you have no font background colour.
you can change the font colour.
only thing is it also uses the font on your page.

could you also make one of these using the wind speed,then showing "breeze,hurricane etc" or the windforce,like:
0-3km/h=force1?
i know it's showing in the data field.but i would like to have it as a standalone script
No problem dear friend, I shall work on that tomorrow for you.

Regards

Jason
User avatar
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

Post by hans »

thanks,jason.looking forward to it :D .

as for AJAX,looks difficult but i am intriged.
especially for the pageload.
i now find eg the windgauges on the gauges page a bit sluggish on first load(could be because i use opera,it has some issues with javascript).
love the wind stuff on the dasboardpage(worth a headache,nights are already short for me :lol: )
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

Post by 6719jason »

Dear Hans,

I have attached to this post, the script you kindly asked me to make for you.

I have made 4 versions as I understand that not everyone uses the same units.

There is a MPH, M/S, KM/H and a KTS version.

You may experience a slight difference to the description the Beaufort Scale Gives and This Script.

I have also, modified the Washing Drying Conditions Script, which is also attached.

I hope these scripts can be of use to all.

Regards Jason
You do not have the required permissions to view the files attached to this post.
User avatar
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

Post by hans »

thanks very much for the script.
i do have a few problems with it.
i use dreamweaver to edit my pages.
when i paste the lines in my page,it gives a fault with this line:
<span style="text/css"><font color="#3300CC">

which is strange,for it's the same line i used for the laundry script.

secondly,i have no <#wlatest> on the index page so i changed that into <#wgust>
however,that gives no line visible
in the sourcecode of my page #wgust has a value of eg: 22,0
so i think the decimal messes it up.

my knowledge of this is very basic so now i am stuck
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

Post by 6719jason »

hans wrote:thanks very much for the script.
i do have a few problems with it.
i use dreamweaver to edit my pages.
when i paste the lines in my page,it gives a fault with this line:
<span style="text/css"><font color="#3300CC">

which is strange,for it's the same line i used for the laundry script.

secondly,i have no <#wlatest> on the index page so i changed that into <#wgust>
however,that gives no line visible
in the sourcecode of my page #wgust has a value of eg: 22,0
so i think the decimal messes it up.

my knowledge of this is very basic so now i am stuck
Okay, thanks for informing me of the faults. I will try and edit the scripts sometime in the week for you.

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

Post by 6719jason »

Assuming you are using the KM/H Version, I have edited the script and attached it to this message. Please reply asap with results.

Regards

Jason
You do not have the required permissions to view the files attached to this post.
User avatar
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

Post by hans »

still a no go
colour issue is ok,no lines showing
i am using the km/h
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

Post by 6719jason »

Okay, thanks for speedy reply. Will have another quick look at the script. Is the <#wgust> Tag definately on the page? If <#wgust> displays differently in Dreamweaver, would you be able to copy and paste how it is displayed into a reply message. Thanks
User avatar
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

Post by hans »

here is a copy of my indexT as it is in dreamweaver

http://home.xmsnet.nl/hanmir/indexT.txt
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

Post by 6719jason »

Right, I have had a look at the source code of your website and I think I may of solved the problem.

Attached is another edited version. Hope this one works for you.
You do not have the required permissions to view the files attached to this post.
Post Reply