1.0.2 • Published 3 years ago

leaf-connect-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

leaf-connect-cli

Requirements

Install node.js

Installation

Globally

npm i -g leaf-connect-cli
# Then use the "leaf-connect-cli" to run it
leaf-connect-cli

Without installation - npx

npx leaf-connect-cli

Usage

Commands

CommandDescription
statusRetrive status
cachedStatusRetrieve cached status
climateControlStatusRetrive climate control status
climateControlTurnOnTurn on climate control
climateControlTurnOffTurn off climate control
chargingStartStart charging
historyGet history

Options

OptionDescription
-v, --verboseVerbose logging
-h, --helpDisplay help
-u, --usernameYour username
-p, --passwordYour password
-r, --regionCodeRequired see "region codes"
-l, --localeLocale to use. Default: en-US

Example

leaf-connect-cli status -u username -p password -r NE

Region codes

RegionCode
EuropeNE
CanadaNCI
USANNA
AustraliaNMA
JapanNML

Example script

See my bash to use with i3/i3bar/i3cat

Acknowledgements

This library was inspired by Jason Horne's pywings2 Carwings library for Python.

License

MIT

About

Created with ❤ for Alheimsins