Code Monkey home page Code Monkey logo

wind-speed's Introduction

Picarro: Windspeed Coding Challenge

This repository contains code for a Command Line Interface (CLI) program to gather wind velocity data from San Jose Ca.

How It Works

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.

Getting Started

Build

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.

Run

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

Test

Unit tests are provided in the testImpl.py file within the source directory.

To run tests:

$ make test

Clean

To deactivate your virtual environment run:

$ make clean

Further Documentation

wind-speed's People

Contributors

cheyennens avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.