Giter VIP home page Giter VIP logo

chargemanager's Introduction

Chargemanager

GitHub sourcecode GitHub last commit GitHub issues GitHub pull requests GitHub

This tool enables charging of an electric car depending on the availability of surplus energy from the photovoltaic system. Vehicles from the Volkswagen Group that can be connected and controlled by Weconnect and E3/DC home power stations are supported.

The control takes place via the software of the vehicle, independent of the wallbox used.

Depending on the available solar power, the system switches between not charging, charging with reduced or maximum power.

In addition, the house battery can support the charging process. For this purpose, a hysteresis between two SOC values can be set.

The software module requires the tools WeConnect-mqtt and rscp2mqtt.

Prerequisites

If you need to install rscp2mqtt please follow the link.

Please install WeConnect-mqtt as well.

The chargemanager needs the library libmosquitto. For installation please enter:

sudo apt-get install libmosquitto-dev

Cloning the Repository

git clone https://github.com/pvtom/chargemanager.git
cd chargemanager

Compilation

To build the program use

gcc chargemanager.c -o chargemanager -lmosquitto

Usage

Please start the program with

./chargemanager

The available parameters will be displayed.

Start WeConnect-mqtt

./weconnect-mqtt -u "[email protected]" -p "My_weconnect_password" --mqttbroker localhost --prefix weconnect --convert-times Europe/Berlin

Start Chargemanager

./chargemanager --host localhost --vin WVXZZZ12345678900 --no_hysteresis --prefix weconnect

Stop Chargemanager

The user can exit the program by pressing the Ctrl-c key. This also terminates the charging process of the vehicle.

Tested with

  • Volkswagen charger and car (ID serie)
  • E3/DC S10 E 4500 W max battery power
  • Photovoltaic modules with 11 kWp
  • Raspberry Pi 4

Disclaimer

The software is in alpha status. The use is at your own risk. This applies to damages to the hardware (PV system, vehicle), the conditions of Weconnect use and any costs incurred for the purchase of electricity from the public grid and so on. The tool is automatically terminated when the vehicle is disconnected from the wallbox or it is detected that the vehicle is driving.

Known Issues

Sometimes there are difficulties to contact the Weconnect server. Here it may be useful to restart WeConnect-mqtt.

chargemanager's People

Contributors

pvtom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.