Skip to content

Alheimsins/leaf-connect-cli

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 

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

Command Description
status Retrive status
cachedStatus Retrieve cached status
climateControlStatus Retrive climate control status
climateControlTurnOn Turn on climate control
climateControlTurnOff Turn off climate control
chargingStart Start charging
history Get history

Options

Option Description
-v, --verbose Verbose logging
-h, --help Display help
-u, --username Your username
-p, --password Your password
-r, --regionCode [Required] see "region codes"
-l, --locale Locale to use. Default: en-US

Example

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

Region codes

Region Code
Europe NE
Canada NCI
USA NNA
Australia NMA
Japan NML

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

About

Node.js CLI for Nissan Leaf API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published