Thanks, Scott, for the kind words.
Since I contributed significantly to the bloat in the ajaxWDwx.js file, I thought I should share the version I compressed online at
http://www.lotterypost.com/js-compress.aspx which is less than half the size. Just rename the original ajaxWDwx.js file to something appropriate, and use this compressed version ajaxWDwx67.min.js.txt after renaming it to ajaxWDwx.js This file gets copied to the client computer and does the heavy lifting during real-time updates, so smaller is definitely better. The compressed version differs slightly in that the title of the SI icon displays the method rather than the icon number when moused over.
A few words about the Solar Index might be appropriate. I, like a few others, wondered why my SI was so high early and late in the day when the absolute W/m
2 was quite low. It turns out that the solar percent value used in the calculation, while essential for determining cloud cover, was not ideal for scaling the amount of solar energy hitting my sensor. I devised an alternate scale using W/m
2 based on the station's record high solar reading and set up a toggle in the dashboard code to switch back and forth between the two SI methods. The problem with my code was that while the values of solar energy either as W/m
2 or solar percent were updating via ajax, the SI icon was static, and thus not very useful when compared with the UV Index and icon which were 'live'. Earlier this month I finally learned enough about what was going on between ajaxWDwx.js and ajaxDashboard6.php to finish the project by making the SI icons 'live' as well.
The configuration flags for the SI section were added so that you can default to either SI scale and toggle or not. If SI switching is used, a terse footnote shows up that attempts to explain what's going on.
I do appreciate Scott's putting up with my questions and for allowing me to make life even more confusing for people.
Edit: It occurred to me during my bike ride this morning that there is another modification in the compressed ajaxWDwx76.min.js.txt I posted. If you find that your current condition icon isn't working, I use the animated .gif's rather than the distribution's .jpg's, and the compressed ajaxWDwx67.min.js.txt is set up for .gif's. Let me know if you're unable to compress the distribution ajaxWDwx.js and I'll try to provide one.