https://github.com/hrbrmstr/weatherkit-rust
Print Apple WeatherKit REST API weather conditions and hourly/daily foreacast to the console.
https://github.com/hrbrmstr/weatherkit-rust
darksky rust weatherkit weatherkit-rest-api
Last synced: 4 months ago
JSON representation
Print Apple WeatherKit REST API weather conditions and hourly/daily foreacast to the console.
- Host: GitHub
- URL: https://github.com/hrbrmstr/weatherkit-rust
- Owner: hrbrmstr
- License: mit
- Created: 2022-07-10T13:14:01.000Z (almost 3 years ago)
- Default Branch: batman
- Last Pushed: 2023-08-26T14:52:40.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T20:51:14.875Z (4 months ago)
- Topics: darksky, rust, weatherkit, weatherkit-rest-api
- Language: Rust
- Homepage: https://hrbrmstr.github.io/weatherkit-rust/weatherkitweather/index.html
- Size: 61 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# weatherkit-rust
A Rust CLI program to print current conditions and daily/hourly forecast to the console.
Please read [`authorization.md`](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 [default: en]
--lat [default: 43.2683199]
--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
```