Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ "$1" = "config" ]; then
- echo 'graph_order sensor0 sensor3 sensor1 ......'
- echo 'graph_title Keskkyte'
- echo 'graph_vlabel Celsius'
- echo 'graph_category Temperature'
- echo 'graph_info Central Heating'
- echo 'sensor0.label from heater'
- echo 'sensor0.colour FF0000'
- echo 'sensor1.label to radiators'
- echo 'sensor1.colour F26300'
- echo 'sensor1.max 60'
- ....
- ....
- echo 'pellet.colour CC9900'
- echo 'boiler.label boiler'
- exit 0
- fi
- export TMPDIR=/tmp
- echo sensor0.value `/usr/bin/digitemp_DS9097 -c /root/.digitemprc -t 0 -q -o %.2C`
- echo sensor1.value `/usr/bin/digitemp_DS9097 -c /root/.digitemprc -t 1 -q -o %.2C`
- ....
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement