1 Coffee getter is somehow friendly API to get and share coffee related data from
4 This project is published under [GNU AGPLv3 license](./LICENSE).
7 ## Running tasks periodically
8 Please, see [Timers][6] and [User][7] pages about systemd.
13 Description=Run top 5 Mate drinkers stats
16 Environment=PYTHONPATH=/path/to/coffee-getter
17 ExecStart=/path/to/coffee-getter/run/top5_mate_stats.py
22 Description=Run top 5 Mate drinkers stats each Mon 9am
25 OnCalendar=Mon *-*-* 09:00:00
29 WantedBy=timers.target
33 ~/.config/systemd/user/
35 Enable timer and service:
37 systemctl --user enable top5_mate_stats.timer
38 systemctl --user enable top5_mate_stats.service
42 systemctl --user start top5_mate_stats.timer
46 Use Test Driven Development. Run test with:
48 python3 -m unittest discover ut
50 Send patches with git-send-email:
52 git config format.subjectPrefix "PATCH coffee-getter"
53 git config sendemail.to "jiri.vlasak.2@cvut.cz"
55 You need the database for the development. You may create it by:
58 from ut.test_db import create_test_db
59 create_test_db("coffee.db")'