I’ve updated the ajaxWDwx.js script to have several requested features:
ability to limit the number of updates before pausing (page reload will restart the script)
new date/time ajax tags (thanks to Kevin at tnetweather.com)
other new ajax variable tags added to the set
support added for other wind-rose wind direction icon displays and added a wr-calm.gif icon to my set.
I collected all the static English words used in displays in the script to a new area (just under the settings) so it should be easier for you to customize the script for other languages.
See the comments in the script for further info.
The AJAX/WD/PHP demo program set was updated, and a new ‘dashboard’ demo was added to the ‘sidebar’ demo (along with the associated test pages). The sidebar and dashboard now use the forecast icons from the NWS-only advforecast2.php script as part of the display … it should be easy to change it to use the equivalent WU-forecast.php script instead for the icons. Both sidebar and dashboard have settings for display units, so the structure should be easy to change to units of measure different from the (quaint) ones used in the USA.
I’ve updated the carterlake/AJAX template set with the new ajaxWDwx.js and wr-calm.gif, so if you’re a current user of the template set, only the two changed files are needed.
I’ve also been working with Kevin to produce a new carterlake/AJAX/PHP website that uses Kevin’s included site control structure … that needs a bit more work as we’re finishing up. You can sneak a peek at the working draft if you like. It should be ready early January for distribution.
Outstanding! Thanks so much for your continued contributions to this forum and to our ever improving weather pages. Merry Christmas and a safe, Happy New Year!
Like I said they work great when I hit the refresh button. And the strange thing is I have the older one of them here http://www.desotowiwx.com/ajax-testpage.php and it works wonderfull.
I’d left a referral to ajaxWDwx2.js in both ajax-sidebar-testpage.php and ajax-dashboard-testpage.php from my build/testing – it’s now corrected in ajax-1-06.zip.
and the script will load in both ajax-sidebar-testpage.php and ajax-dashboard-testpage.php. Fortunately, ajax-gizmo-testpage.php had the right script invoked.
Sorry!!! Got to remember that brain cells fade after 11pm
I see what you mean, Jack. At 800x600, just the left menu and dashboard fit on the screen, while the ‘incompressable’ graphics on the right remain sticking out and the header and footer compress to the screen width (800px). Looks a bit odd.
Even at 1024x768, the right graphics poke out beyond the header/footer border.
I’d tried using the 320x240 graphics on the right using the pictr class and no table, but that caused even a stranger phenomenon. The graphics would stay nudged to the right boundary and ‘float’ over and obscure the dashboard from the right. That looked worse on my demo page, so I opted for the table to corral them.
Sorry, I don’t have a great suggestion to keep the header/footer aligned to the max extent of the page (with graphics on right).
An excellent Christmas gift from a great guy! Thanks again Ken! Many thanks to everybody who worked on this script too! =D>
I wonder if it is possible to make another addition to the script concerning the translation of current weather conditions text. As far as
I can see, we can translate everything except this text. Is this possible Ken?
My best wishes to everybody in this forum for a Happy and prosperous New Year!
I’d like to allow translation of the clientraw[49] – some of it’s parts are from WD-directly, and some from WD’s decoding of METAR conditions. I’ll ask Brian if he would send the strings he uses for METAR decode in WD and see what can be done.
you can set the weather descriptions in WD to what language you like
see in summary image and icon setup, thresholds to set icons,set names for rain thresholds
does that help?
otherwise if its metar conditions coming directly from a parsed metar then there is not alot that can be done…it would take a bit of work to check the big range of possible metar conditions and then apply to the needed language
not impossible though