cloudy

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

0 Members and 1 Guest are viewing this topic.

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #165 on: May 07, 2009, 06:47:26 PM »
Hi again, only me :)

There appears to be a wee issue with the cloud height text again, as see in image enclosed

I cant remember, is there a function to disable the cloud height text, as i think it might look
better without it as theres already an indicator that gives a rough idea....

Also it looks like is still using the Metar for cloud?

My settings are as follows

  $getMetar       = false;  // get the METAR from NOAA for substituting cloud conditions at night and/or day (not required)
   $metarFrom      = 'NWS'; // [ NWS | OZZ ] ... NWS=NOAA, OZZ=www.airservices.gov.au.
   $metarICAO      = "egtc";// specify 4 letter ICAO code for METAR (overridden if specified in Settings.php)
                            // Find a METAR closest to you here: http://www.bashewa.com/icao-codes.php
                            // Decode the METAR here: http://www.bashewa.com/metar-taf-decoder.php
   $metarRefresh   = 30;    // refresh rate of the METAR in minutes
   $useMetarAtNight= false;  // always use METAR at night time for determinig clouds
   $onlyUseMetar   = false; // always use METAR for determinig clouds i.e. if you don't have a solar sensor or you don't trust WD's conditions
« Last Edit: May 07, 2009, 07:52:06 PM 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 #166 on: May 07, 2009, 08:13:14 PM »
Hi again, only me :)

There appears to be a wee issue with the cloud height text again, as see in image enclosed

I cant remember, is there a function to disable the cloud height text, as i think it might look
better without it as theres already an indicator that gives a rough idea....

Also it looks like is still using the Metar for cloud?

My settings are as follows

  $getMetar       = false;  // get the METAR from NOAA for substituting cloud conditions at night and/or day (not required)
   $metarFrom      = 'NWS'; // [ NWS | OZZ ] ... NWS=NOAA, OZZ=www.airservices.gov.au.
   $metarICAO      = "egtc";// specify 4 letter ICAO code for METAR (overridden if specified in Settings.php)
                            // Find a METAR closest to you here: http://www.bashewa.com/icao-codes.php
                            // Decode the METAR here: http://www.bashewa.com/metar-taf-decoder.php
   $metarRefresh   = 30;    // refresh rate of the METAR in minutes
   $useMetarAtNight= false;  // always use METAR at night time for determinig clouds
   $onlyUseMetar   = false; // always use METAR for determinig clouds i.e. if you don't have a solar sensor or you don't trust WD's conditions

Yip, you're right ... it's using the WD METAR from testtags.php.
Delete the following from testtags.txt on your computer.
$weatherreport = "partly cloudy";   // current weather conditions from selected METAR

Or what I can do is to not to include $weatherreport when $getMetar=false;
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 #167 on: May 07, 2009, 08:40:48 PM »
Maybe what I should mention here is that there is NO need
for cloud-base.php to download a METAR if you've already
got WD doing that. It's actually only required if you use
a non WD product that does not support METAR's.
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 #168 on: May 07, 2009, 09:38:01 PM »

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 #169 on: May 07, 2009, 09:43:48 PM »
:D
I think I've got it now also now using METAR looking good.
Thanks Rainer and all the others who have helped.
http://www.weybourneweather.co.uk/cloud%20graphic/cloud-base.php?uom=M&html=1
http://www.weybourneweather.co.uk/cloud%20graphic/cloud-base.php?uom=M&html=1&test=1
http://www.weybourneweather.co.uk/index.php

Phil

Looks very nice.
Phew what a relief ... now I can carry on with the next projects.
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 #170 on: May 07, 2009, 10:33:36 PM »
I discovered a wee little problem with the cloud height text
still overlapping with the wind speed text.
The cloud height text will now shift earlier to the left i.e.
when it gets below 910m altitude (2985 ft).
Grab the quick fix below.

Last edit: Baro now rounded to: hPa=0, kPa=1, inHg=2.
« Last Edit: May 07, 2009, 11:16:59 PM by Rainer »
Cheers,
Rainer

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

abaldish

  • Guest
Re: Cloud Height Graphic (released)
« Reply #171 on: May 08, 2009, 04:25:16 AM »
Hi there rainer,

seeing a issue here not sure where it is coming from, If i load this:
cloud-base.php?uom=E&html=1
i get this error: Notice: Undefined index: REMOTE_HOST in /home3/johnsto1/public_html/weather/Settings.php on line 35

now if i load just the page itself like this: cloud-base.php i get this error and a ton of text.
Notice: Undefined index: REMOTE_HOST in /home3/johnsto1/public_html/weather/Settings.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home3/johnsto1/public_html/weather/Settings.php:35) in /home3/johnsto1/public_html/weather/cloud-base.php on line 997
after the 997 just alot of text and other stuff that looks like it is to be a image.


Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #172 on: May 08, 2009, 12:25:31 PM »
Hi Rainer

I have done the updates and commented out the line in the testtags, its no longer saying
what the metar is but its saying overcast now and my station is saying Mostly cloudy

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 #173 on: May 08, 2009, 12:52:24 PM »
Hi there rainer,

seeing a issue here not sure where it is coming from, If i load this:
cloud-base.php?uom=E&html=1
i get this error: Notice: Undefined index: REMOTE_HOST in /home3/johnsto1/public_html/weather/Settings.php on line 35

now if i load just the page itself like this: cloud-base.php i get this error and a ton of text.
Notice: Undefined index: REMOTE_HOST in /home3/johnsto1/public_html/weather/Settings.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home3/johnsto1/public_html/weather/Settings.php:35) in /home3/johnsto1/public_html/weather/cloud-base.php on line 997
after the 997 just alot of text and other stuff that looks like it is to be a image.

Hi Abaldish,
Change this line at the very top of cloud-base.php:
    error_reporting(E_ALL);// ^ E_NOTICE ^ E_WARNING);
to this:
    error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

That'll prevent the php compiler from printing warnings and notices.

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 #174 on: May 08, 2009, 01:00:31 PM »
Hi Rainer

I have done the updates and commented out the line in the testtags, its no longer saying
what the metar is but its saying overcast now and my station is saying Mostly cloudy

Hi Bashy,
You have to set the following variables to what you have for your Solar Setup in WD:
      $sunny           = 'clear,sunny,dry';               // for sunny
      $partlycloudy    = 'partly cloudy,mostly clear';    // for some clouds
      $scattered       = 'scattered';                     // for clouds
      $mostlycloudy    = 'mostly cloudy,stopped raining'; // for many clouds
      $overcast        = 'cloudy,overcast,recent rain';   // for overcast


You've not kept the original values as they were shipped with WD.

Version 2.0 that I'm working on will not be dependent on these values any more.
Cheers,
Rainer

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

Offline MichaelPT

  • Posts: 831
  • Staffordshire Nr Leek
    • Weather-Above
Re: Cloud Height Graphic (released)
« Reply #175 on: May 08, 2009, 01:29:15 PM »
Hi
thank you for your help

 it looks  amazing  I have now gone live  on my main web page

 www.weather-above.com

 could not have done this without your help

mick :D

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #176 on: May 08, 2009, 02:04:02 PM »
Looks good Mick, gld you got it working...

Hi Rainer

Heres the settings i have in the cloud-base.php and the image below is the settings in the WD
for the solar sensor

      $sunny           = 'clear,sunny,dry';               // for sunny
      $partlycloudy    = 'partly cloudy,mostly clear';    // for some clouds
      $scattered       = 'scattered';                     // for clouds
      $mostlycloudy    = 'mostly cloudy,stopped raining'; // for many clouds
      $overcast        = 'cloudy,overcast,recent rain';   // for overcast


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 #177 on: May 08, 2009, 02:18:35 PM »
Hi
 thank you for your help
 it looks  amazing  I have now gone live  on my main web page
 www.weather-above.com
 could not have done this without your help
mick :D

Hi Mick,
Looks great.
Glad to be of help.
Just download the latest update to solve the text overlapping and baro decimal correction here.

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 #178 on: May 08, 2009, 02:23:16 PM »
Hi Bashy,
As I thought, different values in solar setup which cause the problem.
I've added your conditions to the update attached below.
If you don't want the conditions & precipitation displayed then switch this off:
   $showCaption=false;
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 #179 on: May 08, 2009, 02:40:14 PM »
Thanks Rainer, updated and it looks like its my conditions now :)
Do you ever get that feeling where you wish you never started something?  :oops: