dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5b0e36340655a6a928da9e61adc74578c06f6b97
parent 9cb74bacf88c64e68de9abdbaa115ecb04cc6f21
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed,  3 Jan 2018 21:01:14 -0500

Add `forecast` function for grabbing NWS hourly forecast :partly_sunny:

Diffstat:
Mlinks/.zshrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -131,6 +131,14 @@ function w3mtor { } function w3mddg { torify surfraw ddg $@ } function weather { curl 'wttr.in/?m'; } +function forecast { + local tmpfile=`mktemp`.png + curl --location \ + 'http://f1.weather.gov/meteograms/Plotter.php?lat=40.3308&lon=-74.5647&wfo=PHI&zcode=NJZ012&gset=20&gdiff=10&unit=0&tinfo=EY5&ahour=0&pcmd=11011111111110100000000000000000000000000000000000000000000&lg=en&indu=3!1!1!&dd=&bw=&hrspan=48&pqpfhr=6&psnwhr=6'\ + --output $tmpfile + open $tmpfile +} + function define { curl --silent dict://dict.org/d:$1 } function news { local url