Skip to content

PetePriority/HamTrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HamTrack

HamTrack is a tracking software that tracks your Hamster's nightly running activity. It measures revolutions of your Hamster's wheel using a reed switch, for example from a bike tachometer, that is connected to a GPIO pin. After a session is complete, it writes the data into a MySQL database and sends a Firebase Cloud message (to be received by an Android app that just parses the data and displays notifications whether the hamster is running and how far he has run).

Requirements

HamTrack requires the python modules rpi.gpio, pyfcm, peewee, and mysqlclient

pip install rpi.gpio pyfcm peewee mysqlclient

Getting started

Adjust the configuration, in particular your wheel's circumference, mysql connection parameters, etc., and comment out features you don't need, like the Firebase Cloud messaging.

PHP-script

The PHP-script, found in php/, requires the composer modules twig and php-units-of-measure. It displays daily, monthly, and session statistics. This shows it in action.

About

Hamster tracking with a Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published