SteVe

Provides basic functions for the administration of charge points, user data and RFID cards for user authentication and was tested successfully in operation.
https://github.com/steve-community/steve

Category: Consumption
Sub Category: Mobility and Transportation

Keywords

chargingstation emobility java mobility ocpp smarthome steve

Keywords from Contributors

transforms archive measur compose observation reporting annotation numerics optimize projection

Last synced: about 11 hours ago
JSON representation

Repository metadata

SteVe - OCPP server implementation in Java

README.md

SteVe

build and run tests

Introduction

SteVe started its life at the RWTH Aachen University in 2013.
The name is derived from Steckdosenverwaltung in German (in English: socket administration).
The aim of SteVe is to support the deployment and popularity of electric mobility, so it is easy to install and to use.
It provides basic functions for the administration of charge points, user data, and RFID cards for user authentication and was tested successfully in operation.

SteVe is considered as an open platform to implement, test and evaluate novel ideas for electric mobility, like authentication protocols, reservation mechanisms for charge points, and business models for electric mobility.
The project is distributed under GPL and is free to use.
If you are going to deploy it we are happy to see the logo on a charge point.

Relation to Powerfill

Powerfill is a SaaS company to expand beyond the basics of SteVe: While SteVe covers the basics of OCPP functionality in a DIY sense, Powerfill offers more and enterprise features with ease of use. See the announcement and sign up for early access.

Charge Point Support

Electric charge points using the following OCPP versions are supported:

  • OCPP1.2S
  • OCPP1.2J
  • OCPP1.5S
  • OCPP1.5J
  • OCPP1.6S
  • OCPP1.6J

⚠️ Currently, Steve doesn't support the OCPP-1.6 security whitepaper yet (see #100) and anyone can send events to a public steve instance once the chargebox id is known.
Please, don't expose a Steve instance without knowing that risk.

For Charging Station compatibility please check:
https://github.com/steve-community/steve/wiki/Charging-Station-Compatibility

System Requirements

SteVe requires

  • JDK 17 or newer
  • Maven
  • MySQL or MariaDB. You should use one of these supported versions.

to build and run.

SteVe is designed to run standalone, a java servlet container / web server (e.g. Apache Tomcat), is not required.

Configuration and Installation

  1. Database preparation:

    Important: Make sure that the time zone of the MySQL server is the same as the time zone of SteVe. Since UTC is strongly recommended by OCPP, it is the default in SteVe and you should set it in MySQL, accordingly.

    Make sure MySQL is reachable via TCP (e.g., remove skip-networking from my.cnf).
    The following MySQL statements can be used as database initialization (adjust database name and credentials according to your setup).

    CREATE DATABASE stevedb CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    CREATE USER 'steve'@'localhost' IDENTIFIED BY 'changeme';
    GRANT ALL PRIVILEGES ON stevedb.* TO 'steve'@'localhost';
    
  2. Download and extract tarball:

    You can download and extract the SteVe releases using the following commands (replace X.X.X with the desired version number):

    wget https://github.com/steve-community/steve/archive/steve-X.X.X.tar.gz
    tar xzvf steve-X.X.X.tar.gz
    cd steve-X.X.X
    
  3. Configure SteVe before building:

    The basic configuration is defined in main.properties:

    For advanced configuration please see the Configuration wiki

  4. Build SteVe:

    To compile SteVe simply use Maven. A runnable jar file containing the application and configuration will be created in the subdirectory steve/target.

    # ./mvnw package
    
  5. Run SteVe:

    To start the application run (please do not run SteVe as root):

    # java -jar target/steve.jar
    

Docker

If you prefer to build and start this project via docker (you can skip the steps 1, 4 and 5 from above), this can be done as follows: docker compose up -d

Because the docker compose file is written to build the project for you, you still have to change the project configuration settings from step 3.
Instead of changing the main.properties in the prod directory, you have to change the main.properties in the docker directory. There you have to change all configurations which are described in step 3.
The database password for the user "steve" has to be the same as you have configured it in the docker compose file.

With the default docker compose configuration, the web interface will be accessible at: http://localhost:8180

Kubernetes

First build your image, and push it to a registry your K8S cluster can access. Make sure the build args in the docker build command are set with the same database configuration that the main deployment will use.

docker build --build-arg DB_HOST= --build-arg DB_PORT= --build-arg DB_USERNAME= --build-arg DB_PASSWORD= --build-arg DB_DATABASE= -f k8s/docker/Dockerfile -t <IMAGE_NAME> .

docker push <IMAGE_NAME>

Then go to k8s/yaml/Deployment.yaml and change ### YOUR BUILT IMAGE HERE ### to your image tag, and fill in the environment variables with the same database connection that you used at build time.

After this, create the namespace using kubectl create ns steve and apply your yaml with kubectl apply -f k8s/yaml/Deployment.yaml followed by kubectl apply -f k8s/yaml/Service.yaml

To access this publicaly, you'll also have to setup an ingress using something like nginx or traefik.

Ubuntu

You'll find a tutorial how to prepare Ubuntu for SteVe here: https://github.com/steve-community/steve/wiki/Prepare-Ubuntu-VM-for-SteVe

AWS

You'll find a tutorial how to setup SteVe in AWS using Lightsail here: https://github.com/steve-community/steve/wiki/Create-SteVe-Instance-in-AWS-Lightsail

First Steps

After SteVe has successfully started, you can access the web interface using the configured credentials under:

http://<your-server-ip>:<port>/steve/manager

Add a charge point

  1. In order for SteVe to accept messages from a charge point, the charge point must first be registered. To add a charge point to SteVe select Data Management >> Charge Points >> Add. Enter the ChargeBox ID configured in the charge point and confirm.

  2. The charge points must be configured to communicate with following addresses. Depending on the OCPP version of the charge point, SteVe will automatically route messages to the version-specific implementation.

    • SOAP: http://<your-server-ip>:<port>/steve/services/CentralSystemService
    • WebSocket/JSON: ws://<your-server-ip>:<port>/steve/websocket/CentralSystemService

As soon as a heartbeat is received, you should see the status of the charge point in the SteVe Dashboard.

Have fun!

Screenshots

  1. Home
  2. Connector Status
  3. Data Management - Charge Points
  4. Data Management - Users
  5. Data Management - OCPP Tags
  6. Data Management - Reservations
  7. Data Management - Transactions
  8. Operations - OCPP v1.2
  9. Operations - OCPP v1.5
  10. Settings

GDPR

If you are in the EU and offer vehicle charging to other people using SteVe, keep in mind that you have to comply to the General Data Protection Regulation (GDPR) as SteVe processes charging transactions, which can be considered personal data.

Are you having issues?

See the FAQ

Acknowledgments

goekay thanks to

  • JetBrains who support this project by providing a free All Products Pack license, and
  • ej-technologies GmbH who support this project by providing a free license for their Java profiler.

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 1,831
Total Committers: 32
Avg Commits per committer: 57.219
Development Distribution Score (DDS): 0.448

Commits in past year: 254
Committers in past year: 6
Avg Commits per committer in past year: 42.333
Development Distribution Score (DDS) in past year: 0.409

Name Email Commits
Sevket Goekay g****y@d****e 1010
dependabot[bot] 4****] 491
dependabot-preview[bot] 2****] 169
Christian Samsel c****l@g****e 59
Julien Herr j****r@b****r 28
Andreas Heuvels a****s@r****e 13
fnkbsi 1****i 13
David Rerimassie d****l@g****m 8
Ling Li l****i@i****k 5
Michael Heimpold m****i@h****e 5
Dakai Wei d****i@s****t 4
Sylwester Lachiewicz s****z@g****m 3
Yvan Janssens y****j@c****t 2
Christian Meusel c****l@p****e 2
Byungjun Woo b****n@g****e 2
Alexander Weickmann a****n@l****m 1
fnkbsi f****i@n****m 1
bastian b****r@t****e 1
Kyle Abramowitz k****z@m****m 1
Kowsz K****z@g****m 1
Andrei 1****r 1
AndyChriss123 A****3@g****m 1
Benoit Vianin b****n@s****h 1
Dan Pegg d****9@g****m 1
Daniel Pegg d****n@p****x 1
Drotak d****r@g****m 1
Fabian Ohler f****1@r****e 1
Gregor Schatz g****z@h****e 1
João Pires j****1@o****m 1
Stefan Wahren s****n@i****m 1
and 2 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 678
Total pull requests: 1,113
Average time to close issues: 2 months
Average time to close pull requests: 9 days
Total issue authors: 339
Total pull request authors: 42
Average comments per issue: 3.88
Average comments per pull request: 0.6
Merged pull request: 807
Bot issues: 0
Bot pull requests: 924

Past year issues: 58
Past year pull requests: 270
Past year average time to close issues: 25 days
Past year average time to close pull requests: 5 days
Past year issue authors: 33
Past year pull request authors: 10
Past year average comments per issue: 3.17
Past year average comments per pull request: 0.43
Past year merged pull request: 202
Past year bot issues: 0
Past year bot pull requests: 213

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/steve-community/steve

Top Issue Authors

  • goekay (46)
  • lategoodbye (20)
  • rdc-Green (19)
  • goRaspy (15)
  • juherr (11)
  • GRangaRao (11)
  • Tano-Coppoletta (10)
  • eviontech (9)
  • TechOverflow (9)
  • andle (8)
  • 01mk027 (8)
  • chuck-h (7)
  • MadLamprey (7)
  • rishabhmehandru (6)
  • DeltaVetal26 (6)

Top Pull Request Authors

  • dependabot[bot] (739)
  • dependabot-preview[bot] (185)
  • goekay (79)
  • juherr (27)
  • fnkbsi (12)
  • JavaIsJavaScript (10)
  • slachiewicz (6)
  • csamsel (6)
  • mhei (5)
  • friedkiwi (3)
  • Nos- (2)
  • chuck-h (2)
  • sirhcel (2)
  • dakai-wei-of-shizen (2)
  • mahmudarslan (2)

Top Issue Labels

  • helpdesk (96)
  • question (57)
  • feature request (46)
  • bug (25)
  • enhancement (10)
  • duplicate (10)
  • invalid (3)
  • discussion (3)
  • wontfix (2)

Top Pull Request Labels

  • dependencies (924)
  • java (335)
  • github_actions (3)

Dependencies

pom.xml maven
  • org.jetbrains:annotations 23.0.0 compile
  • org.apache.logging.log4j:log4j-bom 2.18.0 import
  • org.springframework:spring-framework-bom 5.3.21 import
  • org.projectlombok:lombok 1.18.24 provided
  • com.fasterxml.jackson.core:jackson-annotations 2.13.3
  • com.fasterxml.jackson.core:jackson-databind 2.13.3
  • com.fasterxml.jackson.module:jackson-module-jaxb-annotations 2.13.3
  • com.github.RWTH-i5-IDSG:ocpp-jaxb 0.0.1
  • com.github.goekay:CompositeJKS 2.0
  • com.github.zafarkhaja:java-semver 0.9.0
  • com.google.guava:guava 31.1-jre
  • com.lmax:disruptor 3.4.4
  • com.neovisionaries:nv-i18n 1.29
  • com.sun.mail:jakarta.mail 2.0.1
  • com.zaxxer:HikariCP 5.0.1
  • joda-time:joda-time 2.10.14
  • mysql:mysql-connector-java 8.0.29
  • org.apache.cxf:cxf-rt-features-logging 3.5.3
  • org.apache.cxf:cxf-rt-frontend-jaxws 3.5.3
  • org.apache.cxf:cxf-rt-transports-http 3.5.3
  • org.apache.cxf:cxf-rt-transports-http-hc 3.5.3
  • org.apache.logging.log4j:log4j-api
  • org.apache.logging.log4j:log4j-core
  • org.apache.logging.log4j:log4j-slf4j-impl
  • org.apache.logging.log4j:log4j-web
  • org.eclipse.jetty.websocket:websocket-jetty-server 10.0.11
  • org.eclipse.jetty:apache-jsp 10.0.11
  • org.eclipse.jetty:apache-jstl 10.0.11
  • org.eclipse.jetty:jetty-annotations 10.0.11
  • org.eclipse.jetty:jetty-rewrite 10.0.11
  • org.eclipse.jetty:jetty-server 10.0.11
  • org.eclipse.jetty:jetty-webapp 10.0.11
  • org.hibernate.validator:hibernate-validator 6.1.7.Final
  • org.jooq:jooq 3.16.7
  • org.slf4j:jcl-over-slf4j 1.7.36
  • org.slf4j:slf4j-api 1.7.36
  • org.springframework.security:spring-security-config 5.7.2
  • org.springframework.security:spring-security-web 5.7.2
  • org.springframework:spring-webmvc
  • org.springframework:spring-websocket
  • org.eclipse.jetty.websocket:websocket-jetty-client 10.0.11 test
  • org.junit.jupiter:junit-jupiter-engine 5.8.2 test
  • org.junit.jupiter:junit-jupiter-params 5.8.2 test
  • org.springframework:spring-test test
.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • actions/setup-java v2 composite
  • ${{matrix.db}} * docker
.github/workflows/review.yml actions
  • actions/checkout v2 composite
  • actions/checkout v3 composite
  • actions/setup-java v2 composite
  • actions/setup-java v3 composite
  • nikitasavinov/checkstyle-action master composite
  • pmd/pmd-github-action v1 composite
Dockerfile docker
  • maven 3.6.1-jdk-11 build
docker-compose.yml docker
  • mariadb 10.4
k8s/docker/Dockerfile docker
  • maven 3.6.1-jdk-11 build

Score: 10.37947325345941