Just a question, In version 9.10, shouldn’t there be a “var” at the start of the uvImg section in the java script?
In Version 9.11, it’s back in front of uvImg but it’s missing in front of wrImg on line 355
//------------------------------------------------------------------------------
// WIND ROSE: optional settings for the Wind Rose graphic
// tag: "ajaxwindiconwr"
// e.g. graphic name: "./ajax-images/wr-SSE.gif" or "./ajax-images/wr-nl-SSE.gif"
// .... grab the wind rose icons here: http://www.bashewa.com/downloads/bws-icons-wind.zip
wrImg =
{src : imgDir+"wr-{LANG}{DIR}.png" // where {DIR} will = wind dir (e.g. NNW), {LANG} = wrImg.lang
,width : 58 ,height: 58 ,hspace: 0 ,vspace: 0 ,border: 0
,style : ""
,align : "" // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
,lang : "" // with trailing dash (e.g. "nl-" will result in graphic name: "./ajax-images/wr-nl-SSE.gif")
,calm : "calm" // substitution for {DIR} (e.g "wr-calm.gif") ... specify "" if not to be shown or not available
,xlate : true // translate wind direction for icon names (multilingual system)
,useTag: "ajaxwindiconwr" // ajax tagname to use where the windrose icon should be placed
};
Also, in the UV code line 1951 you are making the uv reading an INTEGER always. With that, isn’t it impossible to then display 1.5 with the optional decimal point set at 1 in lines 491 and 508 of version 9.11 of ajaxWDwx.js and the settings file? Hope that makes some sense.
// UV Index
;;;set_ajax_obs('ajaxProgress',rand+'uv','in UV');
uv = parseInt(clientraw[79]);
set_ajax_obs("ajaxuv" ,uv.toFixed(dp.UV));
set_ajax_obs("ajaxuvNoD",uv.toFixed(0));
set_ajax_obs("gizmouv" ,uv.toFixed(dp.UV)) ;
var imperialDP = // decimal places
{ Temp:1 ,Wind:1 ,Baro:2 ,Rain:2 ,Snow:2 ,Alti:0 ,Dist:2 ,UV:0 };
Just to be clear, I haven’t been able to test version 9.11 yet as I’m at work and it may all work fine but as of this morning when I tested with 9.10 it was still a bit of an issue for me.
Would it be possible to rename ajaxdate@ on line 1634 to ajaxdate2 or something so that it does not casue a failure when validating the code? The @ symbol is not allowed to be used that way for the code to validate.
// current date and time of observation in clientraw.txt
set_ajax_obs("ajaxdatetime", WDdt.date(uom.dateFmt+' '+uom.timeFmt)); // 16/4/2009 02:37:07pm
set_ajax_obs("ajaxdate@" , WDdt.date(uom.dateFmt) + ' @ '); // 6/4/2009 @
set_ajax_obs("ajaxdate" , WDdt.date(uom.dateFmt)); // 16/4/2009
Thanks
Scott