Crates.io | openweather-cli |
lib.rs | openweather-cli |
version | 0.1.2 |
source | src |
created_at | 2022-12-25 20:01:34.991017 |
updated_at | 2022-12-25 21:50:10.967764 |
description | An openweather cli wrapper |
homepage | https://github.com/LighghtEeloo/openweather.rs |
repository | https://github.com/LighghtEeloo/openweather.rs |
max_upload_size | |
id | 745431 |
size | 48,533 |
An unofficial cli for openweathermap that outputs json purely for api calling purposes.
Upon installation, please run
openweather init
and enter the api_key
acquired from https://openweathermap.org/api
.
There are two modes of query from openweathermap.org
:
mode = "location"
which is better because it allows detailed information;mode = "city"
which only supports current weather query.The rest are the granularity settings.
You can always come back and config them with
openweather edit
The rest commands can be found by running plain openweather
.
Upon querying, run
openweather query
and use openweather query -h
for more information.