cloudy

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

0 Members and 2 Guests are viewing this topic.

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Cloud Height Graphic v2.0
« Reply #435 on: February 06, 2010, 06:06:12 AM »
We are currently experiencing a MAJOR winter storm (snowfall at +12" in <24 hours with more to come) and yet my Cloud graphic currently shows a moon phase of hardly anything when it should be showing Waning Crescent at 47% illumination. The moon phase has not changed since incorporating the latest script.

Additionally is has been showing until within the last hour, misting. NOW, after almost 14 hours, it shows it is snowing. 14 hours ago we began to snow and now with 12" of snow on the ground, it finally lets me know it is snowing?? This used to be almost dead accurate all the time but since the latest script and the inclusion of the new ajaxWDwx scripts something is amiss.

Does anone have a clue what is going on... obviously others seem to be having similiar problems based on the postings I have read.  It may have been answered but I missed it if that is the case.


73's de K3JAE

John
K3JAE Weather Station

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 v2.0
« Reply #436 on: February 06, 2010, 09:12:40 PM »
We are currently experiencing a MAJOR winter storm (snowfall at +12" in <24 hours with more to come) and yet my Cloud graphic currently shows a moon phase of hardly anything when it should be showing Waning Crescent at 47% illumination. The moon phase has not changed since incorporating the latest script.

Additionally is has been showing until within the last hour, misting. NOW, after almost 14 hours, it shows it is snowing. 14 hours ago we began to snow and now with 12" of snow on the ground, it finally lets me know it is snowing?? This used to be almost dead accurate all the time but since the latest script and the inclusion of the new ajaxWDwx scripts something is amiss.

Does anone have a clue what is going on... obviously others seem to be having similiar problems based on the postings I have read.  It may have been answered but I missed it if that is the case.

Try replacing your LAST QUARTER table with this:
Code: [Select]
$Q3Moons = array ( // Timestamp of Last Quarter moons
/* 2009 */ 1237398554, 1239975466, 1242545259, 1245104206, 1247651745, 1250189868, 1252721896, 1255251494, 1257782304, 1260317778,
/* 2010 */ 1262860934, 1262860934, 1265413841, 1267976670, 1270546815, 1273119452, 1275689669, 1278254175, 1280811609, 1283361852, 1285905310, 1288442904, 1290976733, 1293510087,
/* 2011 */ 1296046804, 1298590089, 1301141351, 1303699776, 1306263281, 1308829815, 1311397391, 1313963712, 1316526039, 1319081627, 1321629108, 1324169377,
/* 2012 */ 1326705010, 1329239192, 1331774851, 1334314300, 1336859342, 1339411467, 1341971482, 1344538657, 1347110203, 1349681719, 1352248700, 1354808040,
/* 2013 */ 1357358410, 1357358410, 1359899928, 1362434127, 1364963957, 1367493412, 1370026835, 1372568168, 1375119984, 1377682703, 1380254316, 1382830996, 1385407802, 1387979429,
/* 2014 */ 1390540983, 1393089540, 1395625715, 1398153221, 1400677281, 1403203235, 1405735774, 1408278416, 1410833214, 1413400494, 1415978328, 1418561609,
/* 2015 */ 1421142546, 1423713235, 1426269127, 1428810457, 1431340708, 1433864649, 1436387200, 1438913113, 1441446945, 1443992837, 1446553565, 1449128630,
/* 2016 */ 1451712795, 1451712795, 1454297382, 1456873985, 1459437627, 1461987181, 1464524152, 1467051723, 1469574205, 1472096693, 1474624743, 1477163701, 1479717285, 1482285534,
/* 2017 */ 1484864187, 1487446512, 1490025613, 1492595980, 1495154214, 1497699414, 1500233342, 1502759895, 1505284098, 1507811282, 1510346276, 1512892376,
/* 2018 */ 1515450448, 1518018995, 1520594566, 1523172020, 1525745451, 1528310038, 1530863620, 1533406873, 1535942448, 1538473719, 1541004204, 1543537321, 1546076238,
/* 2019 */ 1548623544, 1551180574, 1553746356, 1556317272, 1558888523, 1561456062, 1564017575, 1566572324, 1569120293, 1571661795, 1574198048, 1576731612,
/* 2020 */ 1579266095, 1581805160, 1584351341, 1586905111, 1589465159, 1592029616, 1594596688, 1597164374, 1599730051, 1602290567, 1604843375, 1607387941,
/* 2021 */ 1609925954, 1609925954, 1612460371, 1614994355, 1617530669, 1620071534, 1622618844, 1625174059, 1627737579, 1630307754, 1632880756, 1635451674, 1638016263, 1640572030);
Cheers,
Rainer

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

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Cloud Height Graphic v2.0
« Reply #437 on: February 07, 2010, 07:25:37 AM »
Rainer;

Changing the Last Quarter table made no difference. I am still way off on my cloud script to actual moon phase.

I should be Waning Crescent 37% illumination this date and the cloud script shows but a sliver.

Additionally, the cloud script shows currently 1 °F when actual temperature is -14.1°C (7°F) at time of writing. This also has been a recent problem (temperature being reported incorrectly). I apologize for this additional problem but I did mean to advise of this earlier but forgot it.

While I realize some of this works off what a METAR is reporting (not sure what all reports from), that is even more so inaccurate, as the METAR I use currently shows their temperature to be: -9°C (16°F) which makes the cloud script report even further incorrect.

View all at http://www.k3jae.com


73's de K3JAE

John
K3JAE Weather Station

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 v2.0
« Reply #438 on: February 08, 2010, 02:13:42 AM »
Rainer;

Changing the Last Quarter table made no difference. I am still way off on my cloud script to actual moon phase.

I should be Waning Crescent 37% illumination this date and the cloud script shows but a sliver.

Additionally, the cloud script shows currently 1 °F when actual temperature is -14.1°C (7°F) at time of writing. This also has been a recent problem (temperature being reported incorrectly). I apologize for this additional problem but I did mean to advise of this earlier but forgot it.

While I realize some of this works off what a METAR is reporting (not sure what all reports from), that is even more so inaccurate, as the METAR I use currently shows their temperature to be: -9°C (16°F) which makes the cloud script report even further incorrect.

View all at http://www.k3jae.com

Hi John,
Can you download and install it again please: http://www.bashewa.com/downloads/bws-script-cloudbase-update.zip?2.0b
I can't see anything wrong.
Are you perhaps running PHP 4 by any chance?
Are your moons in correct in ./images/cb/moon?
There should only be 28 images for SH and NH (00 to 27).
If not try installing them again from the full download.
Cheers,
Rainer

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

Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cloud Height Graphic v2.0
« Reply #439 on: February 08, 2010, 02:27:32 AM »
Thank you... that latest update fixed my moon phase.
"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 tsewane

  • Posts: 10
    • Weather at Thessaloniki, Greece
Re: Cloud Height Graphic v2.0
« Reply #440 on: February 09, 2010, 04:42:48 PM »
Hi

It works fine on Firefox.
The problem is on IE. The cloud image disappear after 4 seconds (probably when testtags it's loading).
Any idea?
Thanks

Here is my ajaxWDwx.js

Code: [Select]
//--- begin cloud height graphic -----------------------------------------------
      stationAlt = 0; // your station altitude in meters if you want ASL (meters = ft / 3.2808399)
      temp = clientraw[ 4];
      dewp = clientraw[72];
      pres = convertBaro(clientraw[6]);
      wind = convertWind(clientraw[1]); // gust = clientraw[2]
      wdir = windDirLang(clientraw[3]);
      rain = convertRain(clientraw[7]);
      cloudheight = Math.max(0,(temp-dewp)/0.00802)*1.0 + stationAlt; // in meters
      altitude = (useunits=="E") ? Math.round(cloudheight*3.2808399) : Math.round(cloudheight);
      above = (stationAlt>0)? ' ASL' : ' AGL';
      cloudText = altitude.toString() + uomHeight + above;
      param = '?uom=' + useunits + '&alti=' + uomHeight + '&wind=' + uomWind + '&buster=' + altitude + pres + wind + wdir + rain;
      set_ajax_obs("ajaxcloudheightimg"
         ,'<img src="cloud-base.php' + param
         + '" alt="'    + cloudText
         + '" title="'  + cloudText
         + '" width="100" height="200" hspace="0" vspace="0" align="" border="0" style="" />');
//--- end cloud height graphic -------------------------------------------------
« Last Edit: February 09, 2010, 05:21:52 PM by tsewane »

Offline K3JAE

  • Posts: 691
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Cloud Height Graphic v2.0
« Reply #441 on: February 10, 2010, 01:22:17 AM »
Hi John,
Can you download and install it again please: http://www.bashewa.com/downloads/bws-script-cloudbase-update.zip?2.0b
I can't see anything wrong.
Are you perhaps running PHP 4 by any chance?
Are your moons in correct in ./images/cb/moon?
There should only be 28 images for SH and NH (00 to 27).
If not try installing them again from the full download.


Defintely running PHP5.
All images in ./images/cb/moon
I have 00-29 for SH and NH images (totalling 30 each)

So I will have to re-DL the pajkage just to get the images and see if that resolves the issue.


73's de K3JAE

John
K3JAE Weather Station

Offline Weerstation

  • Posts: 129
  • The Netherlands
Re: Cloud Height Graphic v2.0
« Reply #442 on: March 29, 2010, 03:27:40 PM »
My dashboard isn't refreshing anymore when I added the part in ajaxWDwx.js file.
Where exactely in the ajaxloader do you have to add this.
I added it between //temperature and //humidity like this.

Code: [Select]
//Temperature
temp = convertTemp(clientraw[4]);
set_ajax_obs("ajaxtemp", temp.toFixed(1) + uomTemp);
set_ajax_obs("ajaxtempNoU", temp.toFixed(1));
set_ajax_obs("gizmotemp", temp.toFixed(1) + uomTemp);
set_ajax_obs("ajaxbigtemp",temp.toFixed(0) + uomTemp);

templast = convertTemp(clientraw[90]);
temparrow = ajax_genarrow(temp, templast, '',
langTempRising+uomTemp+langTempLastHour,
langTempFalling+uomTemp+langTempLastHour,1)

set_ajax_obs("ajaxtemparrow",temparrow);
set_ajax_obs("gizmotemparrow",temparrow);
 
   temprate = temp - templast;
temprate = temprate.toFixed(1);
if (temprate > 0.0) { temprate = '+' + temprate;} // add '+' for positive rates
set_ajax_obs("ajaxtemprate",temprate + uomTemp);
set_ajax_obs("gizmotemprate",temprate + uomTemp);

tempmax = convertTemp(clientraw[46]);
set_ajax_obs("ajaxtempmax",tempmax.toFixed(1) + uomTemp);

tempmin = convertTemp(clientraw[47]);
set_ajax_obs("ajaxtempmin",tempmin.toFixed(1) + uomTemp);

thermometerstr = langThermoCurrently +  + temp.toFixed(1) + uomTemp +
 ", " + langThermoMax + tempmax.toFixed(1) + uomTemp +
 ", " + langThermoMin + tempmin.toFixed(1) + uomTemp;

set_ajax_obs("ajaxthermometer",
"<img src=\"" + thermometer + "?t=" + temp.toFixed(1) + "\" " +
"width=\"54\" height=\"170\" " +
"alt=\"" + thermometerstr + "\" " +
"title=\"" + thermometerstr + "\" />" );

//--- begin cloud height graphic -----------------------------------------------
      stationAlt = 0; // your station altitude in meters if you want ASL (meters = ft / 3.2808399)
      temp = clientraw[ 4];
      dewp = clientraw[72];
      pres = convertBaro(clientraw[6]);
      wind = convertWind(clientraw[1]); // gust = clientraw[2]
      wdir = windDirLang(clientraw[3]);
      rain = convertRain(clientraw[7]);
      cloudheight = Math.max(0,(temp-dewp)/0.00802)*1.0 + stationAlt; // in meters
      altitude = (useunits=="E") ? Math.round(cloudheight*3.2808399) : Math.round(cloudheight);
      above = (stationAlt>0)? ' ASL' : ' AGL';
      cloudText = altitude.toString() + uomHeight + above;
      param = '?uom=' + useUOM + '&buster=' + altitude + pres + beaufortnum + rain;
      set_ajax_obs("ajaxcloudheightimg"
         ,'<img src="cloud-base.php' + param
         + '" alt="'    + cloudText
         + '" title="'  + cloudText
         + '" width="100" height="200" hspace="0" vspace="0" align="" border="0" style="" />');
//--- end cloud height graphic -------------------------------------------------


//Humidity ...
humidity = clientraw[5];
set_ajax_obs("ajaxhumidity",humidity);
set_ajax_obs("gizmohumidity",humidity);
// sorry.. no min/max data for humidity available in clientraw.txt]
« Last Edit: March 29, 2010, 03:29:21 PM by Weerstation »
Vantage Vue (Firmware 2.14 EU)
WeatherDisplay 10.37R build 03
USB Weatherlink IP Data Logger

Windows 7 Ultimate 32-bit
HP Intel Core Duo T6600 2.2 Ghz

Offline HometownZone

  • Scott
  • Posts: 1,240
  • Webster Weather LIVE Scripts
  • Webster, MN, USA
    • Webster Weather LIVE
Re: Cloud Height Graphic v2.0
« Reply #443 on: April 07, 2010, 01:51:31 AM »
Anyone know why all of a sudden day and night modes are way off?  Am I missing something?

Scott
Scott

www.WebsterWeatherLIVE.com

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp

Offline _Niklas_

  • Posts: 42
  • Sweden, Europe
    • My Weather Site
Re: Cloud Height Graphic v2.0
« Reply #444 on: September 16, 2010, 11:42:56 AM »
Does anyone know whats wrong when I get an address to the cloud height image on my web looking like this:

http://niklasberglund.no-ip.org/weather/carterlake/cloud-base.php?uom=M&alti=%20m&wind=%20km/h&buster=319988.82.0372000000000003V8.4


it doenst work, and the above link doesnt make much sense to me...

//Niklas


Offline BigOkie

  • Posts: 617
  • Tulsa, OK
    • East Tulsa (Douglas)
Re: Cloud Height Graphic v2.0
« Reply #445 on: September 16, 2010, 05:44:13 PM »
Does anyone know whats wrong when I get an address to the cloud height image on my web looking like this:

http://niklasberglund.no-ip.org/weather/carterlake/cloud-base.php?uom=M&alti=%20m&wind=%20km/h&buster=319988.82.0372000000000003V8.4


it doenst work, and the above link doesnt make much sense to me...

//Niklas



Because the image is generated by a php script.  UOM = Units of measurement.  The param labeled 'buster' is a cache buster, so the image doesn't get loaded from the cache.

Offline Weerstation

  • Posts: 129
  • The Netherlands
Re: Cloud Height Graphic v2.0
« Reply #446 on: September 25, 2010, 05:42:37 PM »
Is it possible to have a different scale?
Mine goes up to 3300 metres, suppose I would like to have it go up to only 2200 metres.
Can that be done?

TIA
Vantage Vue (Firmware 2.14 EU)
WeatherDisplay 10.37R build 03
USB Weatherlink IP Data Logger

Windows 7 Ultimate 32-bit
HP Intel Core Duo T6600 2.2 Ghz

Offline _Niklas_

  • Posts: 42
  • Sweden, Europe
    • My Weather Site
Re: Cloud Height Graphic v2.0
« Reply #447 on: October 02, 2010, 06:26:13 PM »
I cant get this script to work properly. The image doesnt show up, I get the alternative text for when the image is broken, like "403 m ASL" and that data refreshes with everything else and updates correctly.

I thought it was a permissions error, but I beleave I've checked that and found no errors.. (Im running my own server)   :?



I have the cloud-base.php in my carterlake folder, and in the same folder I have the images/cb  and  images/cb/moon folders with the images.

$pathToImages     = './images/cb/';      // path to the background, cloud, windsock and scale images (with trailing slash)
$pathToMoonImages = './images/cb/moon/';



This one works when I add the "html=1" parameter: http://niklasberglund.no-ip.org/weather/carterlake/cloud-base.php?uom=M&html=1

Help anyone?  Im stuck.   :( :roll:


The URL to my site is :  http://niklasberglund.no-ip.org/weather/carterlake/index.php


Thanks,
Niklas



---------------
EDIT
---------------

Got it solved finally, changed from IIS webserver to Apache, which gave me clues that I saw garbage when pointing to: http://niklasberglund.no-ip.org/weather/carterlake/cloub-base.php

Removed any excessive carriage returns and spaces from the bottom and top of the testtags file.  Done - finally :)


« Last Edit: October 03, 2010, 11:44:24 AM by _Niklas_ »

Offline MrHat

  • Posts: 28
  • Firenze (Florence) - Tuscany - Italy
    • MeteoCampigiano
Re: Cloud Height Graphic v2.0
« Reply #448 on: October 05, 2010, 09:58:43 PM »
Hi....!

First of all...thank you very much for this script...I love it!

...and now...I focalize to the problem:    :)

I'm using this script on my website from a while without any problems...I set all the directories of the important required files and the METAR of the nearest airport...and everything were ok for months...

...suddenly from a couple of days the script is showing the kind of cloud and the height...but isn't updating with the precipitation...
...before when there were any kind of precipitation the script showed the kind of precipitation and the amount in the graphic...but now there's still the kind of clouds and the height...

...What can I do? I didn't change anything from the script file...I tried to set $onlyUseMetar to true but it didn't change anything...


Offline blainec

  • Posts: 86
  • Calgary, Ab.
    • Calgary Alberta
Re: Cloud Height Graphic v2.0
« Reply #449 on: November 16, 2010, 03:18:45 AM »
All of a sudden, the graphic is not showing the clouds or other data.
Has anyone else had this issue