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
- Host: GitHub
- URL: https://github.com/samprotas/weather
- Owner: SamProtas
- License: bsd-3-clause
- Created: 2017-01-17T03:25:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T05:34:23.000Z (over 9 years ago)
- Last Synced: 2023-02-27T13:41:26.997Z (over 3 years ago)
- Language: Haskell
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`)