Web Site Software Updated

I just posted another update to the Web site software.  Several things have changed, hopefully for the better.

1) I added a configuration file for the JavaScript side of the house.  It is generated by the PHP code, which makes it a lot easier to keep the two in sync.  The new file is config/config.js.php.

2) I did some testing in other browsers and learned that the Knockout “foreach” construct was failing in some browsers.  I tracked it down to incompatibilities between knockout and jQuery.  The site now uses jQuery 1.11.0 and knockout 3.0.  I also had to add jQuery migrate 1.2.1 to the mix to keep some of the browsers happy.  Unfortunately the slide effect and a few other special effects I was using doesn’t work correctly with knockout in all browsers so I stopped using them.  All the browsers I have tested now work, although my browser list and testing is not comprehensive.

3) I revised the data model for the weather forecast to make it simpler to work with.  I updated the forecast display in both PHP and JavaScript, as well as the page that returns the JSON representation of the data.

Enjoy.  I may do some more work with the weather statistics JSON representation to only pass back the data that is actually being displayed on the We site.  That will take some analysis and isn’t a high priority at the moment.  It also looks like my humidity sensor may have an issue as it has been reporting 100% for at least a day now.  It’s too cold to do much about it right now, and the NWS is predicting 6-10 inches of snow in the next 24 hours.  I’ll keep an eye on the sensor and order parts if it keeps looking like I have a problem.