phixarhasse / coffeebot

Responsible for watching the office's coffee maker and sending notifications to a Slack channel.
GNU General Public License v3.0
2 stars 1 forks source link

Implement statistics #1

Open phixarhasse opened 3 years ago

phixarhasse commented 3 years ago

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.

phixarhasse commented 3 years ago

Idea: listen for 'ctrl+c' signal and upon exit report statistics like amount of pots so far.

phixarhasse commented 3 years ago

This is started but not complete. Could not manage to listen for SIGINT (ctrl+c) without the script instantly terminating.

phixarhasse commented 2 years ago

We should just dump the raw measurement data into a database instead. That allows other applications to use it, like a frontend for example.