#!/bin/rc # https://www.weather.gov/documentation/services-web-api rfork e ll=39.768403,-86.158068 # indianapolis, in if(~ $#1 1) ll=$1 grid=https://api.weather.gov/points/$ll g=`{hget $grid | sed -n 59,61p | sed 's/("|,|:| |grid|Id|X|Y)//g'} hget https://api.weather.gov/gridpoints/^$g(1)^/^$g(2)^,^$g(3)^/forecast