This commit is contained in:
2021-03-08 18:33:19 +01:00
commit 7241a4ff6c
7 changed files with 97 additions and 0 deletions

16
wttr_precipitation Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_category environment
graph_title Precipitation
graph_vlabel mm
precipitation.label precipitation
graph_args -l 0
EOM
exit 0;;
esac
printf "precipitation.value "
curl -s https://wttr.in/${wttr_location}\?format="%p\n" 2>&1 | sed 's/mm//'