I'm fairly new to Python. I'm building a heating controller, which will be able to be configured via a web interface (and possibly other options such as an Android App later).
The architecture that I had in mind was that the main thread would be the heating control loop, which would be reading sensors, actuating relays and timed operations - the configuration would be held in a database. I was then thinking about running a web server in another thread which would allow the configuration to be changed (updating the database), and upon any changes, it would signal an event to the main thread to re-load it's settings.
However all the web frameworks that i've looked at don't seem to work well operating in a thread, it seems that they are intended to always run in the main thread.
So, is there a suitable simple web framework that will do what i'm suggesting above, or am I on the wrong design track entirely, and there's a much better way of achieving the same thing?