This repository has been archived by the owner. It is now read-only.
Using a usb scale to keep an eye on coffee status at the office
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7a04bed Jul 28, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc Added blink. Nov 30, 2012
local/bin Added blink. Nov 30, 2012
plugins First add of (outdated) files. Jan 22, 2012
var/www Added icon. Feb 7, 2012
README Update README Jul 28, 2016
draft Draft. Feb 7, 2012



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.

You need

* one raspberry pi or pc running ubuntu or other linux.
* a usb scale. I used one from bought through ebay.
* a coffee pot. Our is a non-transparent, 2 liter, thermo can.
* optional: a LED connected to GPIO
* some spare time.


* Install munin, munin-node, apache.
* The .rules file goes in /etc/udev/rules.d/
* Place munin-scale in /etc/munin/plugins/
* Place in /local/bin/ (create this dir)


* 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 if problems.
* The 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.


* Graphics by Leo @
* Usb scale: /