Open phixarhasse opened 3 years ago
Idea: listen for 'ctrl+c' signal and upon exit report statistics like amount of pots so far.
This is started but not complete. Could not manage to listen for SIGINT (ctrl+c) without the script instantly terminating.
We should just dump the raw measurement data into a database instead. That allows other applications to use it, like a frontend for example.
Preferrably by writing to a file. Count how many pots have been brewed per day, to start with. Once we can measure how much coffee is (approximately) brewed per pot, we can add how much coffee is brewed per day. Other ideas include times of the day the coffee maker is generally more busy. As the statistic taking gets more complex, move it to a separate file to not clog up the main file.