This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
45 lines (29 loc) · 1.61 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
**DISCONTINUED**
Coffeeleft v.3 20110206
-----------------------
Using a usb scale and a raspberry pi to keep an eye on coffee status at the office. The project will be cleaned up a bit next time I have to upgrade HW/SW.
This project is licensed under the GPL. Contact me if you have questions. I did not make the perl-script, I just modyfied it. See original in references.txt.
https://github.com/ways/coffeeleft
You need
--------
* one raspberry pi or pc running ubuntu or other linux.
* a usb scale. I used one from stamps.com bought through ebay.
* a coffee pot. Our is a non-transparent, 2 liter, thermo can.
* optional: a LED connected to GPIO
* some spare time.
How-to
------
* Install munin, munin-node, apache.
* The .rules file goes in /etc/udev/rules.d/
* Place munin-scale in /etc/munin/plugins/
* Place usbscale-simple.pl in /local/bin/ (create this dir)
Problems
--------
* The perl script assumes the scale apears as /dev/hidraw0. If you have mouse, keyboard or other devices connected this may be wrong. Change the script.
* Hidraw works differently in ubuntu 9.10 vs ubuntu 10.04. Test with original script, and apply patch in comments here https://gist.github.com/503896 if problems.
* The stamps.com scale has a max weight of about 2.2 kg, the same weight as our empty pot. Fortunately, if the empty pot is on the scale when switched on, the scale is calibrated accordingly, and gives a correct result even though it carries up to 4-5 kg.
References
----------
* Graphics by Leo @ Copyleft.no
* Usb scale: http://gist.github.com/503896 / https://github.com/erjiang/usbscale
* http://blog.aztekera.com/archives/54