Hi Thoralf,
You can find here my sample code of your needed widget for 6 GPIO.
You have to fix the GPIO name as follow :
"25 %","50 %","75 %","100 %","125 %","150 %" instead of you have to change the src code in the hgx file.
The files raintanklevel.html and raintanklevel.js have to be in the creating folder :
/usr/local/bin/homegenie/html/pages/control/widgets/DaniMail/generic
For simulation test I have create a section While( Program.IsEnabled) in the *.hgx file that you can mask after the first test of the widget.
Cheers
Dani