This is a simple Python CGI script on the server side that records events (sleeping/wake/nursing) into a Sqlite database on the server side and returns them when queried. The JavaScript UI then polls this data and displays it. Very rudimentary so far.
My code is GNU GPL-3. Javascript implementation of sprintf by Alexandru Mărășteanu hello@alexei.ro under BSD-3-Clause.