Git Product home page Git Product logo

python-noaa's Introduction

python-noaa

Description

Python bindings for NOAA's XML web-service as well as a simple command-line utility for fetching the forecast.

Requires

  • Python 3.5+
  • argparse
  • dateutils
  • configparser

Command-Line Usage

By Zip Code

$ noaa 78703
Forecast for 78703
Fri Chance Rain Showers               57 F    70 F +++++++++++++++++++++++++++++++++++
Sat Rain Showers Likely               60 F    72 F ++++++++++++++++++++++++++++++++++++
Sun Rain Showers Likely               53 F    54 F +++++++++++++++++++++++++++
Mon Chance Rain                       40 F    45 F ++++++++++++++++++++++
Tue Mostly Sunny                      34 F    47 F +++++++++++++++++++++++

By Location

$ noaa Austin, TX
Forecast for Austin, TX, USA
Fri Chance Rain Showers               57 F    70 F +++++++++++++++++++++++++++++++++++
Sat Rain Showers Likely               60 F    72 F ++++++++++++++++++++++++++++++++++++
Sun Rain Showers Likely               53 F    54 F +++++++++++++++++++++++++++
Mon Chance Rain                       40 F    45 F ++++++++++++++++++++++
Tue Mostly Sunny                      34 F    47 F +++++++++++++++++++++++

By Coordinates

$ noaa --metric 30.29128 -97.7385
Forecast for 30.29128, -97.7385
Fri Chance Rain Showers               14 C    21 C +++++++++++++++++++++
Sat Rain Showers Likely               16 C    22 C ++++++++++++++++++++++
Sun Rain Showers Likely               12 C    12 C ++++++++++++
Mon Chance Rain                        4 C     7 C +++++++
Tue Cold                               1 C     8 C ++++++++

Example ~/.noaarc

[default]
location=78705
metric=False
heading=False
color=True

python-noaa's People

Contributors

ewitmayer avatar rconradharris 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.