Catbox is an entertainment system for cats (and other pets).
Designed for Rapberry Pi 4 with some future modules integrating sensors, can be run on a pc as long as the relevant sensor modules are left out of the modules_list. Tested on Windows and Ubuntu.
Setup
-
Clone or download the repo and ensure Python 3.6 or greater is installed.
-
POSIX Chromedriver installation - ask Jonnie
-
Navigate to the root project directory and create a virtual environment.
python -m venv .env -
Activate virtual environment.
Windows
.env\Scripts\activate.batPOSIX
.env/bin/activate -
Ensure pip is up to date.
pip install --upgrade pip -
Install required modules.
pip install -r requirements.txt -
Launch catbox :)
python src/catbox.py
Adding Modules
-
To add your own custom modules, create a sub folder under
src\modulesand title it with the name of your new module. -
Create the
module.pyfile inside and inherit from the BaseModule. -
Write your module and make sure any new signals are added to the BaseModule's codes dictionary.
-
Once finished, remember to add your module to the modules_list in
src\modules\__init__.py -
Remember, each module runs in it's own thread! Lastly, PR your module if you think its cool!