blob: a57253a1603b880e7c3adff3bb53081a5a0d0a18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/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"
)
|