Giter Site home page Giter Site logo

hrbrmstr / weatherkit-rust Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 62.47 MB

Print Apple WeatherKit REST API weather conditions and hourly/daily foreacast to the console.

Home Page: https://hrbrmstr.github.io/weatherkit-rust/weatherkitweather/index.html

License: MIT License

Rust 99.76% Shell 0.24%
weatherkit rust weatherkit-rest-api darksky

weatherkit-rust's Introduction

weatherkit-rust

A Rust CLI program to print current conditions and daily/hourly forecast to the console.

Please read authorization.md as you need an Apple Developer Program membership and four environment variables set up to use this CLI tool. These are said env vars:

  • WEATHERKIT_KEY_ID
  • WEATHERKIT_SERVICE_ID
  • WEATHERKIT_TEAM_ID
  • WEATHERKIT_KEY_PATH

and the aforementioned document explains how to get each of those values from Apple.

ALSO NOTE that the program defaults to my location. Make sure to run it with params.

boB Rudis (@hrbrmstr)
Print Apple WeatherKit REST API weather conditions and hourly/daily foreacast to the console.

USAGE:
    weatherkit [OPTIONS]

OPTIONS:
    -h, --help           Print help information
        --lang <LANG>    [default: en]
        --lat <LAT>      [default: 43.2683199]
        --lon <LON>      [default: -70.8635506]
    -V, --version        Print version information

You get something like this:

Building

git clone [email protected]:hrbrmstr/weatherkit-rust
cargo build --release 

Installing

The following will put:

  • weatherkit

into ~/.cargo/bin unless you've modified the behaviour of cargo install.

$ cargo install --git https://github.com/hrbrmstr/weatherkit-rust

weatherkit-rust's People

Contributors

github-actions[bot] avatar hrbrmstr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weatherkit-rust's Issues

Make it a library as well

Most of the bits are there to be a Rust WeatherKit REST API library. Might as well go the extra mile.

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.