Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.21 KB

running-the-client.md

File metadata and controls

58 lines (40 loc) · 1.21 KB

🏃 Running the ChargePi

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.

Standalone

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

🐳 Deploying on Docker

  1. 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 
  2. Run the container from built image:

    docker run --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem --privileged chargepi

Deploying using docker-compose

  1. Build the ChargePi client:

    docker-compose -f ./deployments build .
  2. Run services in daemon mode:

    docker-compose -f ./deployments up -d