An open API service indexing awesome lists of open source software.

https://github.com/samprotas/weather

Command line weather reports, written in Haskell
https://github.com/samprotas/weather

Last synced: about 1 year ago
JSON representation

Command line weather reports, written in Haskell

Awesome Lists containing this project

README

          

Command line client for simple weather data access and a small project to learn Haskell with.

# Hello World
```bash
Macintosh:src Sam$ weather

Current Weather Report for: SW Center City, Philadelphia, Pennsylvania
Overcast
Temperature: 38.8 °F
Feels like 39 °F
Wind: Calm
Last Updated on January 16, 10:23 PM EST
```

#Usage
```bash
Macintosh:weather-hs Sam$ weather -h
weather
usage : weather [reportType] [-c CITY] [-s STATE] [-c COUNTRY] [--configure] [-d] [-h] [--version]

optional arguments:
reportType [current|hourly|daily] defaults to
'current'
-c, --city CITY optionally specify a location
(must be used with '--state' or
'--country')
-s, --state STATE optionally specify a location
(must be used with '--city') ex:
PA for Pennsylvania
-c, --country COUNTRY optionally specify a location
(must be used with '--city')
defaults to 'us'
--configure add/modify an api key
-d, --debug print debugging information (for
developers only)
-h, --help show this help message and exit
--version print the program version and exit
```

#Installation

1. Install stack (https://docs.haskellstack.org/en/stable/install_and_upgrade/)
2. Download Source (`git clone https://github.com/SamProtas/weather`)
3. Build and install from source directory (`stack install`)