Skip to content

foxstephen/wttrcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line weather report using http://wttr.in

Provides a way to fetch weather report and parse into multiple reports, see below.

Clone the repository

git clone https://github.com/StephenFox1995/wttrcli

Use Package the project, go to project root and run:

mvn package

Alternatively, use the provided install script to run the package command and copy the jar to /usr/local/bin:

./install.sh

To run

java -jar target/wttrcli-1.0.jar <options>

Alternatively, if you ran the install.sh above, the following command will be available:

wttrcli <options>

The following options can be used:

--Usage--
	[l, location]	: The location to fetch the weather report.
	[o, option]	: An option for parsing the report, can be any of the following: 
                            all, tomorrow, live, aftertomorrow

Examples

wttrcli -l Dublin -o all

alt text

wttrcli -l Dublin -o live -o tomorrow

alt text

wttrcli -l Madrid -o aftertomorrow

alt text