initial
This commit is contained in:
16
wttr_wind
Executable file
16
wttr_wind
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
config)
|
||||
cat <<'EOM'
|
||||
graph_category environment
|
||||
graph_title Wind speed
|
||||
graph_vlabel km/h
|
||||
windspeed.label wind speed
|
||||
graph_args -l 0
|
||||
EOM
|
||||
exit 0;;
|
||||
esac
|
||||
|
||||
printf "windspeed.value "
|
||||
curl -s https://wttr.in/${wttr_location}\?format="%w\n" 2>&1 | sed -r 's/^[^0-9]*([0-9]+).*$/\1/'
|
||||
Reference in New Issue
Block a user