You will have to translate the strings below if WD reports the conditions in any other language other than English.
Look at your WD Solar/UV setup description for the actual strings. $sunny = 'clear,sunny'; // 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 $thunderclouds = 'cumulonimbus,cumulus'; $drizzle = 'drizzle,shower'; $raining = 'rain,thunderstorm'; $snowing = 'snow,flurries'; $misty = 'mist,fog'; $rainstopped = 'recent rain,stopped raining,recent showers';
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 ... please un-comment to use.
Grab the latest release for cloud-base.php below.
TRANSLATIONS FOR THE CLOUD MATCH
I have translated the following cloud condition match strings into German.
The best way to see what WD reports is in your clientraw.txt file.
If anybody does another language translation could you please post it here.
GERMAN TRANSLATION for the cloud condition match:`
$sunny = ‘klar,sonnig,trocken’; // for sunny
$partlycloudy = 'teilweise bewölkt,grö
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
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
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.
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?
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 [color=red][i]PS: passing any of the above parameters will always override the internal settings.[/i][/color] 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 [color=blue][i]$WDLanguage=de[/i][/color] or [color=blue][i]?WDlang=de[/i][/color] parameter. 03 May 2009 V1.3 Added extra parameters for overriding specific UOM's. Added [color=blue][i]$alwaysShowCloud[/i][/color] when conditions are sunny or clear. Added [color=blue][i]$alwaysShowMPH[/i][/color] if wind speed should be in MPH for metric UOM.