Skip to content

A module for starting and stopping your Zaptec Go EV charger

License

Notifications You must be signed in to change notification settings

Alheimsins/zaptec-go-start-stop

Repository files navigation

js-standard-style

zaptec-go-start-stop

A module for starting and stopping your Zaptec Go EV charger

Usage

You will need your username and password for the Zaptec Portal

import { start, stop } from '@alhemisins/zaptec-go-start-stop'

const username = '<your-zaptec-portal-username>'
const password = '<your-zaptec-portal-password>'

const resultStart = await start({ username, password })
console.log(resultStart) // => { status: 'success', message: 'Started charging' }

const resultStop = await top({ username, password })
console.log(resultStop) // => { status: 'success', message: 'Stopped charging' }

If you only want the chargerID and session token you can use getTokenAndCharger

import { getTokenAndCharger } from '@alhemisins/zaptec-go-start-stop'

const username = '<your-zaptec-portal-username>'
const password = '<your-zaptec-portal-password>'

const access = await getTokenAndCharger({ username, password })
console.log(resultStart) // => { status: 'success', message: 'Found charger and authenticated', id: '<your-charger-id>', token: '<your-session-token>' }

Limitations

If you have multiple Zaptec Go chargers connected to your account this module will only pick the first one.

Related

License

MIT

About

Created with ❤ for Alheimsins

About

A module for starting and stopping your Zaptec Go EV charger

Resources

License

Stars

Watchers

Forks

Packages

No packages published