17 lines
302 B
Bash
Executable File
17 lines
302 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $1 in
|
|
config)
|
|
cat <<'EOM'
|
|
graph_category environment
|
|
graph_title Humidity
|
|
graph_vlabel %
|
|
humidity.label humidity
|
|
graph_args -l 0 --upper-limit 100
|
|
EOM
|
|
exit 0;;
|
|
esac
|
|
|
|
printf "humidity.value "
|
|
curl -s https://wttr.in/${wttr_location}\?format="%h\n" 2>&1 | sed 's/\%//'
|