https://github.com/nirum/heather
:partly_sunny: a Haskell weather command line app
https://github.com/nirum/heather
Last synced: about 1 month ago
JSON representation
:partly_sunny: a Haskell weather command line app
- Host: GitHub
- URL: https://github.com/nirum/heather
- Owner: nirum
- License: mit
- Created: 2015-06-05T02:07:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T23:22:12.000Z (over 10 years ago)
- Last Synced: 2025-11-18T01:03:17.460Z (7 months ago)
- Language: Haskell
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Heather
:partly_sunny: A haskell command-line app for fetching the weather forecast!
## Installation
Must have `ghc` installed. To install, first get an API key from
[openweathermap](http://openweathermap.org) and place it at the top of `Heather.hs` (on line 14),
then simply run `make` to install.
## Usage
To get the current weather (for zipcode 94305)
```bash
$ heather current
> 58.94
```
Or specify a custom zipcode:
```bash
$ heather current 27708
> 64.94
```
Or get the entire temperature forecast for the next three days:
```bash
$ heather forecast
> 58.95 56.95 53.11 51.87 51.75 56.33 61.42 64.25 63.44 59.7 55.14 53.07 52.26 55.86 60.44 63.06 62.45 59.22 56.03 56.51 56.27 57.17 61.03 63.71 63.69 59.86 55.96 55.41 54.73 55.13 62.33 66.28 65.31 60.68 55.29 52.67 51.9 54.26 61.14 64.05
```
We can pass this stream to other apps, like [Spark](https://github.com/holman/spark):
```bash
$ heather forecast | spark
```
results in:

See `heather -h` for more info.
## Contact
Niru Maheswaranathan (`nirum@stanford.edu`)