cloudy

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

0 Members and 4 Guests are viewing this topic.

Offline gorpett

  • Posts: 57
  • Varmdo (Sweden)
    • HEASSELMARA WEATHER
Re: Cloud Height Graphic (released)
« Reply #30 on: May 02, 2009, 02:18:16 PM »
Quote
Create a file gb.jpeg  in the same directory as your could-base.php   "touch gb.jpeg"
You may also have to set the permissions for the file depending on your server "chmod 644 gb.jpeg"
Also you may have to the file cb.jpeg to the name.group the httpd is running under.

Hi jmoriartey

I don't seem to solve this.
I have tried what you suggested but no change.
It shows all the data except cloud height.

I have a different meter for cloud height and that one works well.

http://www.goranpettersson.se/wxgauges.php

Göran
WD on a eeepc 1101H, Windows 7 Home Premium SP1
http://www.goranpettersson.se/wxindex.php?lang=en

Offline jmoriartey

  • Posts: 30
  • Leduc Alberta Canada
    • Leduc Weather
Re: Cloud Height Graphic (released)
« Reply #31 on: May 02, 2009, 02:36:37 PM »
Hi jmoriartey

I don't seem to solve this.
I have tried what you suggested but no change.
It shows all the data except cloud height.

I have a different meter for cloud height and that one works well.

http://www.goranpettersson.se/wxgauges.php

Göran

Have a look at httpd error_log it will give you an idea what the error is if you are getting
if you getting a unable to open for writing - the file does not exist or the permissions are wrong

Offline gorpett

  • Posts: 57
  • Varmdo (Sweden)
    • HEASSELMARA WEATHER
Re: Cloud Height Graphic (released)
« Reply #32 on: May 02, 2009, 07:53:13 PM »
I let the problem be for a few hours and when I returned to continue debugging, it worked.
So everything is okay now,

thanks jmoriartey

Göran
WD on a eeepc 1101H, Windows 7 Home Premium SP1
http://www.goranpettersson.se/wxindex.php?lang=en

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 #33 on: May 03, 2009, 09:05:27 AM »
Rainer 
 
 
Fantastic script  easy to setup, now I have find a place to put it :)
I went to your site and was amazed at the WMR200 console (http://www.bashewa.com/wxconsoleWMR200.php)
As WMR200 owner I love that script I think most WMR200 owners would love that script too
Great work Thanks

I've still got lots of work to do on the WMR200 Console script.
I'll release it when I've got it completely done.
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 #34 on: May 03, 2009, 09:09:50 AM »
Thanks for the update, now working, although i aint overly keen on having to have my root
set to write so i will move it to another dir update the settings to suit,

I aint sure but the my current conditions are showing as overcast, yet the image is mostly
cloudy, METAR is turned off as well so i aint sure where its getting mostly cloudy from?
http://www.northantsweather.com/cloud-base.php?uom=M&html=1

Hi Bashy,
Try pressing CTRL-F5 or add a buster like this:
http://www.northantsweather.com/cloud-base.php?uom=M&html=1&buster=123

The mostly cloudy is appended from this tag in testtags.php: $weatherreport = '%weatherreport%';
« Last Edit: May 03, 2009, 09:14:13 AM by Rainer »
Cheers,
Rainer

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

Offline vk2him

  • Posts: 424
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Cloud Height Graphic (released)
« Reply #35 on: May 03, 2009, 09:47:56 AM »
Hi Rainer,

Thanks for the script, I have it running on my dashboard, however there doesn't seem to be an arrow showing the cloud height?

If I use the test page http://wx.theshackbythebeach.com/wx/cloud-base.php?uom=M&html=1&test=1
it works Ok.  If I used the prior code I could also see cloud height, but not now:

Old code:

Code: [Select]
<div style="position: relative;  width: 50px;">
                  <span class="ajax" id="ajaxcloudheight" style="position: absolute; top:45px; left: 11px; color: black; font-size: 9px; font-weight: bold;" ><?php echo $cloudheightfeet?>&nbsp;ft</span>
                  <span class="ajax" id="ajax_CBH_last_arrow" style="position: absolute; top:35px; left: 22px; " ></span>
                  <img src="/wx/cloud-height.png" alt="Min. possible Cloud Base Height Above Ground Level" title="Min. possible Cloud Base Height Above Ground Level" />
                                   
      </div>

Any ideas why I can't see the cloud height?
Cheers

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 #36 on: May 03, 2009, 09:59:57 AM »
If I use the test page http://wx.theshackbythebeach.com/wx/cloud-base.php?uom=M&html=1&test=1
it works Ok.  If I used the prior code I could also see cloud height, but not now:

If your weather report is "clear, sunny or dry" there will be no cloud and cloud height arrow.
What I can add is something like this:

$alwaysShowCloud = true;

... an then use the "cb-cld-cloudband.png" for the cloud like WD does.
Cheers,
Rainer

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

Offline vk2him

  • Posts: 424
  • Gerringong, NSW, Australia
    • The Shack by the Beach
Re: Cloud Height Graphic (released)
« Reply #37 on: May 03, 2009, 10:25:58 AM »
If your weather report is "clear, sunny or dry" there will be no cloud and cloud height arrow.
What I can add is something like this:

$alwaysShowCloud = true;

... an then use the "cb-cld-cloudband.png" for the cloud like WD does.

That would be good ... cheers

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #38 on: May 03, 2009, 11:39:39 AM »
Hi Rainer, thanks, that makes sense and its looking ok good today :)

I do have one other question that might be difficult...

I like to see my Temps in Celsius but when you set that the wind then shows in
kmh, but i prefer the wind in mph, is there a way to add a setting so the wind
can be in mph and the temp in C please?

Also, if the Metar is not used would it be possible to have it so it dont say Metar at all please?

Sorry for being a pain...
« Last Edit: May 03, 2009, 11:42:19 AM by Bashy »

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 #39 on: May 03, 2009, 04:51:26 PM »
Changes/additions requested by Bashy and vk2him.

OPTIONAL PARAMETERS ADDED:
      uom=  [ M | E]  .................... set units-of-measure (M)etric or (E)glish
      wind= [ kts | mph | kph | km/h ]  .. set uom for wind
      alti= [ ft | m ]  .................. set uom for cloud altitude
      rain= [ mm | in ]  ................. set uom for rain
      baro= [ hPa | kPa | inHg ] ......... set uom for barometer
      temp= [ C | F ]  ................... set uom for temperature
      humi= [ 0 | 1 ]  ................... 1=show humidity
      cond= [ 0 | 1 ]  ................... 1=show conditions
      cloud=[ 0 | 1 ]  ................... 1=always show clouds when sunny or clear.
      metar=[ <code> | empty ]  .......... get NOAA METAR for given code. Disable if empty.
      WDlang= [ en | de ]  ............... language in WD clientraw.txt file
      test= [ 1..5 ] ..................... use preset conditions for drawing picture
      html= [ 0 | 1 ] .................... 1=output html code for testing, 0=save picture only
      PS: passing any of the above parameters will always override the internal settings.

VERSION HISTORY:
  02 May 2009 V1.0 First release.
  02 May 2009 V1.1 Fixed translation issue for non-multilingual web sites.
  02 May 2009 V1.2 Added "dry" to the "clear,sunny" match string.
                   Added German match strings ... select with $WDLanguage=de or ?WDlang=de parameter.
  03 May 2009 V1.3 Added extra parameters for overriding specific UOM's.
                   Added $alwaysShowCloud when conditions are sunny or clear.
                   Added $alwaysShowMPH if wind speed should be in MPH for metric UOM.


LATEST UPDATE FOR cloud-base.php BELOW
« Last Edit: May 03, 2009, 05:17:29 PM by Rainer »
Cheers,
Rainer

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

Offline SkyBoy

  • Posts: 48
  • San Diego, Ca.
    • Mission Trails Weather
Re: Cloud Height Graphic (released)
« Reply #40 on: May 03, 2009, 05:14:53 PM »
Looks like the cloud height is working well in San Diego ... so far!
Inserted into alternative dashboard, replacing the snow section.

http://wx4mt.com

Thanks Rainer  :thumbleft:and forum team!

John

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #41 on: May 03, 2009, 05:40:15 PM »
Excellent, thank you very much Rainer, working well

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

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 #42 on: May 03, 2009, 06:01:02 PM »
Excellent, thank you very much Rainer, working well

Bashy my pleasure.
I've added $arrowColor for cloud height marker (arrow) for you.
Grab it below.

VERSION HISTORY:
  02 May 2009 V1.0 First release.
  02 May 2009 V1.1 Fixed translation issue for non-multilingual web sites.
  02 May 2009 V1.2 Added "dry" to the "clear,sunny" match string.
                   Added German match strings ... select with $WDLanguage=de or ?WDlang=de parameter.
  03 May 2009 V1.3 Added extra parameters for overriding specific UOM's.
                   Added $alwaysShowCloud when conditions are sunny or clear.
                   Added $alwaysShowMPH if wind speed should be in MPH for metric UOM.
  03 May 2009 V1.4 Added $arrowColor for cloud height marker (arrow)

« Last Edit: May 03, 2009, 06:03:57 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 #43 on: May 03, 2009, 06:33:42 PM »
ah, you noticed ;)  such a great addition to my site, i will implement it in a couple of ways, such as an
extra weather banner, also in my menu side panel and i think it will be great for the mobile site....

again, thank you, updated an working....

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #44 on: May 03, 2009, 06:44:24 PM »
Oh, before i forget, there is one thing that i can see being a slight issue, your probably
already aware of it, but when the wind speed and the cloud height text's are showing
and the cloud height is around 600m its going to conflict with the wind speed text, its
close to it at present, 2 ways to rectify if both are needed (i would like both if possible)
is either, move the height text to the left some what or, keep the height text stationary.

You would get away with moving the cloud height text to the left with enough space as to
not look too clustered if you loose the space before the F or M, its currently  like 600 m
but if it was moved to the left to fit it would be better showing as 600m (no space), after
saying all that, you may have added something in there that prevents it from overlapping
the wind speed already?

Any thoughts?

 

cumulus