Forecasting with a command

We all love the CLI (and if we don’t, we should) so wouldn’t it be great if there was a tool to see your weather forecast with a single command? Ceda EI at webionite.com has written a tool that uses the Dark Sky API to give you the forecast for a day or week, at your location, and in Celsius or Fahrenheit.

Celsius

Fahrenheit

A great way to make this faster and simpler is to put an alias in your shell’s rc file. For bash, you can do that with:

echo "alias weather='curl sky.webionite.com/f/location'" >> ~/.bashrc

If you ever forget how to use the tool, just run curl sky.webionite.com and you’ll be given instructions.

*****
Written by the pseudonymous Amolith on 14 December 2018
All content on this website is licensed under the CC-BY 4.0 license.