Skip to content

gnuheidix/lake-level-meter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

This script fetches the current water level of the Lake Constance from the Pegelonline webservice http://www.pegelonline.wsv.de/webservice/ueberblick and displays it in a more convenient way.

By executing it, you will get a SVG picture which looks like a fuel gauge of a car.

$ php levelmeter.php > levelmeter.svg

The SVG has been successfully tested with Firefox 3.6, 4, Chromium 11 and Opera 11.1.

You can use the SVG rasterizer of the batik toolkit http://xmlgraphics.apache.org/batik/tools/rasterizer.html in order to generate a PNG.

$ java -jar batik-rasterizer.jar levelmeter.svg

About

script which displays the current water level of the lake constance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages