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