Skip to content

ChargeController controls goE-Charger to charge electric vehicles dynamically based on photovoltaic power

License

Notifications You must be signed in to change notification settings

davbauer/chargeController

Repository files navigation

chargeController

Summary

A way to dynamically control the charging power of an electric vehicle charger based on Photovoltaic panels!

Currently only suppots exact configuration:

Build Status

Branch Build Status
main Build Status - main
dev Build Status - dev

Developement

Setting up developement envirement

New terminal window

yarn           # Install packages
yarn dev       # Run frontend

New terminal window

cd ./backend   # Change dir to 'backend'
yarn           # Install packages
yarn dev       # Run backend

Production

Building the docker image

docker build --build-arg GIT_COMMITID=$(git rev-parse HEAD) --build-arg GIT_BRANCH=$(git symbolic-ref --short HEAD) -t charge-controller .

Using docker-compose.yml

version: '3'

services:
  charge-controller:
    restart: unless-stopped
    container_name: charge-controller
    image: charge-controller
    environment:
      - WEBSOCK_PORT=81
    ports:
      - '2000:80'
      - '81:81'
    volumes:
      - ./config:/app/config

Important

If you want to change the port of the Websocket please change the port everywhere (port mapping & environment).

Other

Preview

preview