cloudy

Author Topic: Cloud Height Graphic v2.1  (Read 76916 times)

0 Members and 1 Guest are viewing this topic.

Offline arthurhh

  • Tokoroa Weather Live
  • Posts: 369
  • IT Fixer
  • Tokoroa South Waikato New Zealand
    • Tokoroa Weather Live
Re: Cloud Height Graphic (released)
« Reply #150 on: May 07, 2009, 09:49:30 AM »
So long as gust is in the clientraw file find the data number for it and change the number in the data statement here
  $wind    = $data[1];      // in kts which I believe is data item 2 so
$wind =$data[2];   // wind gust in kts

If I have it correct that should do it

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #151 on: May 07, 2009, 10:06:00 AM »
Excellent, thank you, that works great :)

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (released)
« Reply #152 on: May 07, 2009, 11:40:37 AM »
Hi Bashy,
I grabed your "ajaxWDwx.js" javascript and have added the cloud height snipped to it.
I've tested it and it updates the dashboard just fine.
The placement of the snipped was important in that it needed some of the other variables in the script.
I now redeclare those that are needed for the cloud height graphic update.
Below is your "ajaxWDwx.js" javascript with the additions for the cloud height graphic.
I think it's the standard javascript from Saratoga ... I could not see any changes you've made.

PS: This snipped will update the graphic if there are any changes in
altitude, temperature, humidity, pressure, wind speed, wind direction and rain.
If you don't need them all then just delete those not required from the buster section.
+ '&buster=' + altitude + pres + wind + wdir + rain;

Grab the "ajaxWDwx.js" below.
« Last Edit: May 07, 2009, 10:00:24 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (released)
« Reply #153 on: May 07, 2009, 11:52:54 AM »
I have moved the files to a seperate directory on the server but now I get this

http://www.weybourneweather.co.uk/cloud%20graphic/cloud-base.php?uom=M&html=1&test=1
http://www.weybourneweather.co.uk/cloud%20graphic/cloud-base.php?uom=M&html=1

I am not using METAR

Phil

Hi Phil,
For some or other reason your server creates the "cb.jpeg" file as a folder i.e. "cb.jpeg/".
Have a look here: http://www.weybourneweather.co.uk/cloud%20graphic/

Sorry, I can't help you with this one.
Has anyone on this forum got an answer to this one please?

Added: Without the "?html=1" it streams just fine ... no problem there.
« Last Edit: May 07, 2009, 12:03:38 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #154 on: May 07, 2009, 01:40:21 PM »
Hi Bashy,
I grabed your "ajaxWDwx.js" javascript and have added the cloud height snipped to it.
I've tested it and it updates the dashboard just fine.
The placement of the snipped was important in that it needed some of the other variables in the script.
I now redeclare those that are needed for the cloud height graphic update.
Below is your "ajaxWDwx.js" javascript with the additions for the cloud height graphic.
I think it's the standard javascript from Saratoga ... I could not see any changes you've made.

PS: This snipped will update the graphic if there are any changes in
altitude, temperature, humidity, pressure, wind speed, wind direction and rain.
If you don't need them all then just delete those not required from the buster section.
+ '&buster=' + altitude + pres + wind + wdir + rain;

Grab the "ajaxWDwx.js" below.

Thank you very much Rainer, thats got it working great... I did have to change the cloud-base-old to
cloud-base (thought i best mention it in case someone else uses it) but other than that 100% thank you

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (released)
« Reply #155 on: May 07, 2009, 01:48:33 PM »
Thank you very much Rainer, thats got it working great... I did have to change the cloud-base-old to
cloud-base (thought i best mention it in case someone else uses it) but other than that 100% thank you

Thanks, I'll fix it quickly.

Download of ajaxWDwx.js below.
« Last Edit: May 07, 2009, 10:00:50 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline magical46

  • Posts: 447
    • Weybourne Weather
Re: Cloud Height Graphic (released)
« Reply #156 on: May 07, 2009, 02:04:13 PM »
Quote
Hi Phil,
For some or other reason your server creates the "cb.jpeg" file as a folder i.e. "cb.jpeg/".
Have a look here: http://www.weybourneweather.co.uk/cloud%20graphic/

Sorry, I can't help you with this one.
Has anyone on this forum got an answer to this one please?


OOps I think that was me, not being sure what to do I created the cb.jpeg file
Phil

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (with cloud temp)
« Reply #157 on: May 07, 2009, 02:58:30 PM »


Now with cloud temperature  :D
Update for v1.9 below.
« Last Edit: May 07, 2009, 04:01:32 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #158 on: May 07, 2009, 04:09:14 PM »
Hi Rainer, How is the cloud temp worked out? Is it that every 100m you climb you loose 1C?

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (v1.9 with cloud temp)
« Reply #159 on: May 07, 2009, 04:12:11 PM »
Hi Rainer, How is the cloud temp worked out? Is it that every 100m you climb you loose 1C?

Here's how it's calculated:
1) the air temperature drops 9.84°C per 1000 m of altitude and
2) the dewpoint        drops 1.82°C per 1000 meters altitude.
« Last Edit: May 07, 2009, 04:13:45 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #160 on: May 07, 2009, 04:17:34 PM »
I was close ;)

Thanks, just added the update, working well, I am going to have to add a tool tip
of sorts so folks can understand whats what on there :)

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (released)
« Reply #161 on: May 07, 2009, 04:21:42 PM »
I was close ;)

Thanks, just added the update, working well, I am going to have to add a tool tip
of sorts so folks can understand whats what on there :)

Add it to the "title" tag in the ajaxWDwx.js javascript .. i.e. something like this:
cloudText = altitude.toString() + uomHeight + above + ": whatever you want to say goes here";
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #162 on: May 07, 2009, 04:25:43 PM »
Thanks Rainer, i dare say thats a lot easier than implementing one from Dynamic Drive lol

I have just thought of one other small thing, how about a switch to change the mph to bft?

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cloud Height Graphic (v1.9 with cloud temp)
« Reply #163 on: May 07, 2009, 04:38:27 PM »
Thanks Rainer, i dare say thats a lot easier than implementing one from Dynamic Drive lol

I have just thought of one other small thing, how about a switch to change the mph to bft?

Done ... grab below:

You'll have to change the following line in ajaxWDwx.js however to this:
param = '?uom=' + useunits + '&alti=' + uomHeight + '&wind=bft' + '&buster=' + altitude + pres + wind + wdir + rain;

And you'll have to use it in your ajax-dashboard like this:
<img src="cloud-base.php?uom=M&wind=bft" alt="" height="200" width="100" />

« Last Edit: May 07, 2009, 04:40:27 PM by Rainer »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #164 on: May 07, 2009, 04:44:59 PM »
wow, thanks, i didnt mean straight away, but i appreciate it, will take a look after dinner, you da man... :)

EDIT:
Updated and working well, thanks again....
« Last Edit: May 07, 2009, 05:13:44 PM by Bashy »