This repository contains code for a Command Line Interface (CLI) program to gather wind velocity data from San Jose Ca.
The Windspeed program uses DocOpt to create the main CLI. Users are required to provide a runtime for the program, given in minutes or hours. Unit options are optional with the default unit being miles per hour.
The program queries Open Weather Map
for windspeed data in San Jose California and outputs results to the terminal.
When windspeed variables change - either in speed or direction - new results are updated to the terminal.
Using Git, fork or download the main repository and navigate to the root directory of the project, then simply run
$ make develop
The develop command will create and activate the virtual environment, then install the required packages form the requirements.txt file.
Once, the development environment is set, one can run WindSpeed and set the program runtime by:
$ make serve time=--minutes=int
Or to allow the program to run for hours
$ make serve time=--hours=int
Unit options can also be specified
$ make serve time=—hours=int units=metric=True
Unit tests are provided in the testImpl.py file within the source directory.
To run tests:
$ make test
To deactivate your virtual environment run:
$ make clean