Close

Web Site Snag

A project log for Tennis Court Status Updater

Tennis court staff flip a switch on a small box and an update is posted to a web page for players to check before they call or leave home.

don-gettnerDon Gettner 08/19/2014 at 22:220 Comments

Got the prototype hardware working nicely and then ran into a snag with the web site code I need. I've been learning a bit about Javascript and JQuery and got enough done to have a working page, shown below.

The Electric Imp Agent code sends a "Open" or "Closed" message to my web page which is shown on the screen, along with the time and the battery voltage. That works great.

I've been learning about how to trap the Open or Closed message and then do more with it (like have the background color be green if the courts are open) but it isn't as simple as I expected (or I just haven't figured it out yet).

Oh well, if it were easy it wouldn't be any fun.

Discussions