The IoT Squirrel Feeder
Python C++ Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ESP8266 Wifi Mode set to WIFI_STA Sep 18, 2016
Matlab-Code
docs
images
logs
videos
.gitignore
README.md Autostart comment added Jul 1, 2017
feeder.py
fswebcam.cfg
launcher.sh
tm1637.py
twitter_token_dummy.py ThingSpeak token dummy added Apr 28, 2017

README.md

The Squirrel Cafe - An Internet Connected Feeder

A project to validate the following assumption:

"The amount of nuts taken by squirrels from a squirrel feeder correlates with upcoming winter weather conditions significantly."

The IoT Squirrel Feeder's homepage: http://www.TheSquirrelCafe.com

Feeder Wiring:

Prerequisites

Currently, I'm using a Logitech C270 USB webcam to capture photos of the squirrels at the nut feeder. Therefore you need to install a USB Webcam package. I've opted for the 'fswebcam' package.

sudo apt-get install fswebcam

Useful shell commands

A 'live' view of a logfile: tail -f /logs/feeder.log

Start a vncserver: vncserver :1

Start feeder.py in the background: python feeder.py &

List 'feeder' processes running on the system: ps aux | grep feeder

Kill process by PID: kill PID or kill KILL PID

Useful Weblinks

@reboot sudo sh /home/pi/peanut/launcher.sh >/home/pi/peanut/logs/cronlog.log 2>&1

You don't need this crontab entry, if you have implemented the restart launcher.sh script on exceptions as described below.

*/5 * * * * pgrep -f -u root feeder.py || /home/pi/peanut/launcher.sh >/home/pi/peanut/logs/cronlog.log 2>&1