Continuing to work on final project documentation. Also fixed another minor bug in rpi_client.py.
Fixing a bug that I just noticed while doing a dry run. The client sorts the temps before creating the SensorReading object so the correct temps don't correspond to the correct sensors on the server. The fix was simply to create the SensorReading object sooner before the temps are sorted.
Okay, fixing that bug for reals now.
Fixing a global variable bug in RPi client.
Adding some charset info to make sure mod_wsgi doesn't puke on UTF-8 encoded strings. Also added a "-d" (debug enable) switch to the RPi client so that it only prints out debug information if you want it to. Finally, I added a try except block around the database insert code in the server daemon so that the whole daemone doesn't crash when there is an error.
Made a few minor changes to the RPi client.
Made good progress tonight with the client and server apps. Added the socket connection and SensorReading object to hold the sensor readings (surprise).
Adding work to rpi_client from this weekend.
I'm finally starting to put all the pieces together and build the RPI client. So far so good, although I still need to work a few details. I also reorganized my "test scripts" into a proper library so that I can call the relevant code from my client program.