#!/bin/sh . "`dirname \"$0\"`"/datastore-functions.sh name=yves.laserjet.tonerstatus curl -s "http://10.1.0.10/hp/device/info_suppliesStatus.html" | sed -ne 's/.*>\([0-9]*\)%<.*/\1/p' | ( read value put_value_sensor_now "$name" "$value" )