Hi Sietse
Thank you very much for a great script. Its very cool.
I have a suggestion for us Danish users:
In Ken Trues ajaxWDwx.js there are some translations from English to Danish in clientraw field 49 - current conditions - would it be able to put them in the iwdl.js too?
Here they are:
currentcond = clientraw[49];
currentcond = currentcond.replace(/_/g,' ');
currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
currentcond = currentcond.replace(/\//g,', ');
// Extra Tag Cleanup
currentcond = currentcond.replace(/ø/g,'ø');
currentcond = currentcond.replace(/Ã¥/g,'å');
currentcond = currentcond.replace(/æ/g,'æ');
// METAR translation English to Danish begins
currentcond = currentcond.replace(/\b(Clear)\b/ig,' Klart');
currentcond = currentcond.replace(/\b(, clear)\b/ig,', Klart');
currentcond = currentcond.replace(/\b(Sunny)\b/ig,'Sol');
currentcond = currentcond.replace(/\b(Clear skies)\b/ig,'Skyfrit');
currentcond = currentcond.replace(/\b(mostly)\b/ig,'overvejende');
currentcond = currentcond.replace(/\b(cloudy)\b/ig,'skyet');
currentcond = currentcond.replace(/\b(Mostly sunny)\b/ig,'Mest sol');
currentcond = currentcond.replace(/\b(A few clouds)\b/ig,'Få skyer');
currentcond = currentcond.replace(/\b(Sc)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Scattered clouds)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Partly cloudy)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Mostly cloudy)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Cloudy with clear p)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Cloudy with clear patches)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Overcast)\b/ig,'Overskyet');
One more thing:
I was trying to get it working on a subdomain - but the wx-data did not show up.
Best regards,
Henrik