4 ms·
How do you make use of your national weather service? Do you get a similar terminal output in the end?
by opan 1y ago
How do you make use of your national weather service? Do you get a similar terminal output in the end?
- cess11 1y agoYeah. I use the one in a neighboring country because they provide decent JSON and image API:s, unlike my local weather service. In one use case I take 'https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=snip&lon=snip https://api.met.no/weatherapi/locationforecast/2.0/compact?l...' and push through a jq incantation to format the prognosis for the coming five hours into a neat packaging for terminal viewing, then put that in a watch -n on five minutes. I'm not really interested in the escape sequences and ASCII art.