This guide assumes you already have a working OCPP management/central system. If you do not have one already, check out SteVe and set it up according to their guide.
Before you run/connect the client, make sure the backend is available and the charge point is registered. Also, libnfc should be installed (a convenience script is available).
Running the client:
go run -tags=rpi .
or compiling and executing the client:
GOOS=linux
GOARCH=arm64
go build -o chargepi .
./chargepi
-
Build the client image on Docker:
cd ChargePi/client docker build -t chargepi .
or pull it from Docker Hub:
docker pull xblaz3kx/ChargePi-go:latest
-
Run the container from built image:
docker run --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem --privileged chargepi
-
Build the ChargePi client:
docker-compose -f ./deployments build .
-
Run services in daemon mode:
docker-compose -f ./deployments up -d