Download “CoretechCoffeeMonitor-MP-” coretechcoffeemonitor-mp-0001.rar – Downloaded 1614 times – 18 MB

The file has included test examples and vlc player. The Management Pack is 32Kb


This management packs can be used to keep track of the level of coffee in left in the pot.

With this management pack, you will never run dry of, what we all know, is the most important part of a productive environment!

This is mostly made as a proof of concept, as this technique can be transferred to other monitor types. It could be expanded with other types of sensors, like a weight to check the level of coffee instead of a camera, or a thermometer to check the temperature of the coffee.

This is the very first version. It has been tested in test environments.

By default, it will trigger a warning when under 50% is left, and a Critical Alert when under 20% is left.

Please do not hesitate to report any bugs and please send suggestions for the next version you might have.

This was developed by Jakob Gottlieb Svendsen with the help of Kåre Rude Andersen


Microsoft System Center Operations Manager 2007 R2

Microsoft .Net Framework 3.5 SP1

A network connected camera

Coffee machine with clear-glass pot and free view to all of the pot, see an example in the video.

The management pack is based upon Microsoft .Net Framework 3.5 SP1. This is required to be installed before the executables can run.

The Monitor requires a Camera to take snapshots of the Coffee pot, and the Monitor application uses the snapshot to count how much coffee is left.

The camera and coffee machine has to be placed correctly and a number of requirements have to be fulfilled. These requirements could become obese if one would spend time at modifying a Coffee Machine to include a web camera.

  1. Coffee pot have to be in clear glass.
  2. The whole of the coffee pot has to be visible from one side from the camera.
  3. The background behind the machine/pot has to be white, or similar very light color. This have only been tested with white background.
  4. Camera have to be level with the coffee pot, and point towards the pot in a 0 degrees horizontal angle. Otherwise the level of coffee could be inconsistent.
  5. The light in the room have to be turned on a all times, while the monitor is scheduled to run, and must not point directly at the pot, since the glass, with black coffee behind, can act as a mirror, making it impossible for the camera to see the coffee level. A Camera with Polaroid lense, or polaroid filter i front of, should in teory overcome this problem, making the measurement much more stable.
  6. The camera have to place a snapshot JPG,PNG or BMP at a specified location once every minute or so, depending on how you setup the monitor. Alternatively, if the camera has a .asf stream, we have included our test setup, that utilizes VLC player to grab a snapshot of the ASF stream every time the monitor script is run (Extra\Debug-version-with-VLC-Snapshot Folder).


1. Extract all files to a folder on the server drive (C:\CCM etc.)
2. Import the Management Pack “CoretechCoffeeMonitor.xml” into OpsMgr.
3. Setup Coffee Machine and Camera
4. Use CCM-Config.exe to configure maximum and minimum amount of coffee as well as the black thersholm. See the video for more details.
5. Schedule your camera to put a new image in a specific location every minute (default is c:\CCM\snap.png).Pictures can be JPG, BMP or PNG
5. Setup the image file location in the script parameters in the unit monitor called “Coretech Coffee Monitor”
6. System is now ready!


You should use CCM-Config.exe to create a config.xml file. See Video for more details.

This file have to be placed in the same directory as the executables (etc. C:\CCM)

The path for the image file have to be setup in the Script parameters in the Unit Monitor called “Coretech Coffee Monitor”


CoretechCoffeeMonitor.exe Main executable, this is used by the management pack to count the number of black pixels in the snapshots
CCM-config.exe Configuration application, is used to create the nessesary config.xml file.
config.xml This have to be placed in the same folder as the executables for the system to work. Is generated by CCM-Config.exe
CoretechCoffeeMonitor.xml Main Management Pack XML file.

Management Pack Content:

That should be it for now!

Please bring your feedback 🙂