cloudy

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

0 Members and 3 Guests are viewing this topic.

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 #240 on: May 16, 2009, 02:36:00 PM »
Thanks Rainer, Got it all working.

Question... How do you remove all of the text below the graphic? Thanks.

http://www.snoqualmieweather.com/cloud-base.php?html=1

Like this http://www.snoqualmieweather.com/cloud-base.php
...but you've still got problems somewhere with spaces in your include files before "<?php" or after "?>"
Cheers,
Rainer

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

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cloud Height Graphic (released)
« Reply #241 on: May 16, 2009, 02:43:39 PM »
My Settings and common files should be fine, Ive never had a problem with them. I wouldnt even know where to look in them as there not showing any errors.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

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 #242 on: May 16, 2009, 02:50:01 PM »
My Settings and common files should be fine, Ive never had a problem with them. I wouldnt even know where to look in them as there not showing any errors.

This will make a difference for this script.
If there are space in those files then they get output as HTML code which is not GRAPHICS CODE.
This will break the script.
Please refer back to the previous posts for more information.
Cheers,
Rainer

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

Offline smokie

  • Posts: 312
  • WS2300 operational May 2007
  • Newquay, Cornwall UK
    • Newquay weather and much more
Re: Cloud Height Graphic (released)
« Reply #243 on: May 16, 2009, 08:23:20 PM »
I'm using v1.9, just installed everything is working fine as far as I can see except I'm getting RSR for wind direction, should be ESE, have checked the == in a few post back and they are there, any ideas ?

http://www.newquayweather.com/cloud-base.php?uom=M&html=1

Great script will include in ajaxdashboard when ironed out this
phil

Newquay, Cornwall.UK  > WS2300 Operational since May 2007.
From 6/4/08 www.newquayweather.com
** Philip

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #244 on: May 16, 2009, 08:27:04 PM »
I just replaced all the foreign languages with the English in the script, i dont need the others.... :)

Offline smokie

  • Posts: 312
  • WS2300 operational May 2007
  • Newquay, Cornwall UK
    • Newquay weather and much more
Re: Cloud Height Graphic (released)
« Reply #245 on: May 16, 2009, 08:48:15 PM »
I just replaced all the foreign languages with the English in the script, i dont need the others.... :)

Thanks Bashy, changed one at a time, it was the Norwegian one that stopped it.
Wonder what was causing that.

Newquay, Cornwall.UK  > WS2300 Operational since May 2007.
From 6/4/08 www.newquayweather.com
** Philip

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: Cloud Height Graphic (released)
« Reply #246 on: May 20, 2009, 05:08:02 AM »
I have this working great and thanks for this very useful script. I have a small issue, beside it breaking the template which is no big deal I can fix. The main issue is the wind direction is showing as some weird characters. You can see what I mean from the link below....

http://www.mesquitewx.com/cloud-base.php?uom=M

I also have just one quick question. I am using the Ajax feature but not really liking how the image flashes every time it updates. So if I didn't used the Ajax option how often would it update regularly?

-Thanks

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 #247 on: May 20, 2009, 05:29:39 AM »
I have this working great and thanks for this very useful script. I have a small issue, beside it breaking the template which is no big deal I can fix. The main issue is the wind direction is showing as some weird characters. You can see what I mean from the link below....

http://www.mesquitewx.com/cloud-base.php?uom=M

I also have just one quick question. I am using the Ajax feature but not really liking how the image flashes every time it updates. So if I didn't used the Ajax option how often would it update regularly?

-Thanks

You've still got an older version of the script ... grab the update attached below.

You can control your ajax update frequency by deleting the "+ wind + wdir" from the buster:
Like this:
  param = '?uom=' + useunits + '&alti=' + uomHeight + '&wind=' + uomWind + '&buster=' + altitude + pres + rain;

It's updating frequently because the wind changes direction and speed constantly and
because your clientraw.txt upload frequency is 4 seconds.


Cheers,
Rainer

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

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: Cloud Height Graphic (released)
« Reply #248 on: May 20, 2009, 05:38:30 AM »
Hmmm I just downloaded this and installed in just a couple of hrs ago.

Well that fixes it great and is all good. THANKS!

If I decided to not use the Ajax option though how often would it update otherwise?
« Last Edit: May 20, 2009, 05:44:34 AM by MesquiteWx »

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: Cloud Height Graphic (released)
« Reply #249 on: May 20, 2009, 05:46:07 AM »
One thing I have noticed about the win is it is currently calm, there is no wind at all but it shows the last reported direction. Is there an array for calm?

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #250 on: May 20, 2009, 06:19:42 AM »

If I decided to not use the Ajax option though how often would it update otherwise?

When the page is refreshed!!

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 #251 on: May 20, 2009, 06:57:04 AM »
Hmmm I just downloaded this and installed in just a couple of hrs ago.

Well that fixes it great and is all good. THANKS!

If I decided to not use the Ajax option though how often would it update otherwise?

You probably got served an old cached version from a proxy somewhere along the line.

It updates when any of the buster conditions you have included changes i.e.
altitude, wind, wind direction, pressure or rain (altitude + wind + wdir + pres + rain)
Altitude changes when there's a change in temperature and/or humidity.

If you don't want to refresh at all then exclude the buster part from param eg.
  param = '?uom=' + useunits + '&alti=' + uomHeight + '&wind=' + uomWind;
Cheers,
Rainer

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

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: Cloud Height Graphic (released)
« Reply #252 on: May 20, 2009, 07:40:50 AM »
Thank you, guess I need to figure out how I want it to be refreshed. The graphic flashing gets kinda annoying, but I like the fact it is getting updated. But then again if refreshing the page will update it I might have to try that.

Is it possible for it to display Calm when the wind speed is 0 mph instead of it showing the last detected wind direction. Do I just need to setup an array for that?

-Thanks

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 #253 on: May 20, 2009, 08:18:11 AM »
Is it possible for it to display Calm when the wind speed is 0 mph instead of it showing the last detected wind direction. Do I just need to setup an array for that?
-Thanks

I forgot about the CALM situation.
I'll have to do some work on that.
Cheers,
Rainer

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

Offline MesquiteWx

  • Nick
  • Posts: 403
  • Mesquite Weather Network
  • Mesquite, Texas
    • Mesquite Weather Network
Re: Cloud Height Graphic (released)
« Reply #254 on: May 24, 2009, 07:58:06 AM »
I have one small issue that I have noticed with this. No matter if there is cloud cover or not it always says clear and shows mostly cloudy conditions.