Forecasting with a command

Reading Time: 1 minutes | Published: 2018-12-14 | Last Edited: 2023-03-19


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 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.


  • Weather for one week - $ curl
  • Weather for today - $ curl


  • Weather for one week - $ curl
  • Weather for today - $ curl

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'" >> ~/.bashrc

If you ever forget how to use the tool, just run curl and you’ll be given instructions. screenshot of the output of the command. it shows two rows of four boxes with ascii art depicting rain, overcast clouds, and the sun obscured by clouds. it shows the temperature and the time of day. everything is coloured and looks very attractive.

This is a self-hosted Commento server that integrates with Akismet for spam filtration. Comments that make it through are still subject to moderator (me) approval before they're displayed publicly.