Every year I count and graph the number of trick-or-treaters that come to the house. This year, I created a few scripts to count, timestamp, and visualize the data.
The project utilized a 900MHz handheld button interface from an old project which I never finished. When I started writing the code, I thought I would use a WIFI feather and just send MQTT messages to an influxdb database and visualize the data in grafana. But it seemed difficult to make the grafana data public, Once I got started, I decided that Python could do all of the graphing and I could use hardware I had put-together and make it useful.
The project takes button press events, and appends the event into a pandas data frame. Every minute, the script will report the total count and the last minute's count to the Adafruit IO page. When I end counting, the script will create some graphs to visualize the data.