1---
2title: "Forecasting with a command"
3description: "Using a single command to get the week's weather forecast"
4author: Amolith
5cover: ../../static/assets/pngs/weather.png
6date: 2018-12-14T21:41:00-04:00
7draft: false
8categories:
9 - Technology
10tags:
11 - CLI
12---
13We 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 <a href="https://webionite.com" target="_blank">webionite.com</a> 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.
14
15## Celsius
16+ Weather for one week - `$ curl sky.webionite.com/location`
17+ Weather for today - `$ curl sky.webionite.com/location/t`
18
19## Fahrenheit
20+ Weather for one week - `$ curl sky.webionite.com/f/location`
21+ Weather for today - `$ curl sky.webionite.com/f/location/t`
22
23A 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:
24```bash
25echo "alias weather='curl sky.webionite.com/f/location'" >> ~/.bashrc
26```
27
28If you ever forget how to use the tool, just run `curl sky.webionite.com` and you'll be given instructions.
29