mynameisfiber / litter-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Litter Box

My cat's litter box was boring, so I added a sensor on it

Hardware

First, take some weight scales and conect it to an HX711. Connect that to a particle photon and register the device under the name litter-box.

To flash the firmware, go into the firmware directory and run make flash. Make sure to modify the static variables in litter-box.ino to match your setup.

Software

To run the setup, build and run the docker image,

$ docker build -t $(whoami)/litter-box .
$ docker run -p 8080:80 $(whoami)/litterbox:latest

Data files will be written to /data/ in the docker container.

API

  • /measure: Add a measurement to the system. Takes a float value parameter
  • /data/<?start_time>/<?end_time>: Shows all litter-box sessions by your cat. start_time defaults to 7 days ago and end_time defaults to now.

About


Languages

Language:C++ 79.6%Language:Python 19.1%Language:Dockerfile 0.8%Language:Makefile 0.4%Language:C 0.1%