This is the source code of a machine to dispense candy when you have earned it.
- Dispenses candy
- Toggl
- IMAP
- Facebook, Reddit
- Raspberry Pi Zero
- Micro-SD card
- USB Wifi adapter
- Micro-USB-to-USB OTG adapter
- 180 degree servo motor
This system is intended to run in a Raspbian environment.
sudo apt install git python-pip python-setuptools virtualenv virtualenvwrapper #python-rpi.gpio
git clone https://github.com/richardghirst/PiBits.git
cd PiBits/ServoBlaster/user/
make servod
sudo cp servod /usr/local/sbin/
sudo chown root:root /usr/local/sbin/servod
sudo chmod u+s /usr/local/sbin/servod
mkvirtualenv candies
workon candies
easy_install pip==1.2.1
pip install -r requirements.txt
- Start your first Toggl before 8:35
- Respond to e-mails within 10 working hours
- Toggl 1 hour work time with no Facebook or Reddit activity
- Your lunch break starts 11:20-12:45 and is 30-80 minutes long
- Have five Toggld hours at 15:00
candycrush - Incentives-based candy dispenser
Copyright (C) 2016 Emil Vikström
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.