Skip to content

REST endpoint to start electric car charger on ladeinorge / CloudCharge

Notifications You must be signed in to change notification settings

Chr1stian/ladeinorge-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your own endpoint to start charging on a Defa/Ladeinorge charger

- WARNING! Sends phone number and password to your account in plain text. Use at own risk and only on secure local networks.

Objective

As ladeinorge/Defa does not provide a public API and I was unable to reverse-engineer it I created a simple Flask endpoint to start charging. It uses Selenium to click trough the webpage and start charging manually like a human would.

Limitations

There is basically no error handling

Linux

Add 172.17.0.1 host.docker.internal to /etc/hosts

Requirements

  • Docker

Usage

Start application

docker-compose up -d

Send request to start charging

http://docker-host-ip:5000/startCharging?phone=12345678&password=replaceMe&charger=chargerID

See program in action

Navigate to docker-host-ip:8900 in a browser to open a VNC connection to the browser. Password is secret

Check Selenium Grid

Navigate to docker-host-ip:4444 in a browser

About

REST endpoint to start electric car charger on ladeinorge / CloudCharge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published