ELMO is an acronym for Electro Mobile. It is software for organizing regional social transport services using electric vehicles.
It is meant to
- fill the gap of local public transportations in areas in which buses cannot be operated in the frequency needed.
- be used by non-profit organizations.
- use electric vehicles for transportation services.
- An organization has at least one electric vehicle used for passenger services at business times.
- Beside the times of passenger service cars can be used for car-sharing.
- People can join as a passenger:
- Members can order cars to pick them up at a certain point and time and bring them to an individual destination.
- Only one ride and return can be ordered in advance to keep slots free for a fair distribution of the available capacity.
- Destinations are limited to local areas (e.g. community).
- People can join as a driver:
- Once a week a driver takes over a shift of passenger service (e.g. 3 hours).
- In the same amount of doing passenger service a driver can rent a car for individual usage (car-sharing)
- Car-sharing is not limited to local areas but is limited in time for a fair distribution of the available capacity (e.g. maximum of 48 hours at once).
- People can join as a both passenger and driver at once:
- Typically, passengers are charged a flat fee.
- Drivers who also use the passenger service pay a lower fee.
Fees are not calculated by the system, but statistics are provided to support charging passengers and drivers.
Hint: At the moment the software is not ready to be used in production! Soon all features required for a base usage should be available. Watch the repository to keep up to date.
- Member management:
- Onboarding
- Administration
- Bulk imports
- Self-management (avatar, email-address, phone-number, personal settings)
- Car management:
- Define cars
- Define car's roles (car-sharing, passenger-service)
- Passenger service:
- Rule based shift planning
- Taking over shifts by drivers
- Car-sharing:
- Planning of rides
- Doing rides
- User-interface
- Optimized for phones, tablets and PCs
- Organisation's details can be defined by configuration: brand-colors, icon, name, homepage, etc.
- Social login (currently available: Google, Amazon; planned: Apple)
- Passenger service:
- Manual shift planning
- Statistics for billing
- Management of rides by drivers
- Self-management of rides by passengers
- Car-sharing:
- Change car-sharing by administrators (e.g. in case of car outages)
- Statistics for billing
- App-Wrapper:
- For Android and iOS
- Special mode for tablets used in cars:
- Optimized to support drivers during the shift
- Used as an SMS gateway to not be dependent on expensive text service providers.
- Not yet scheduled: Recording GPS to calculate accurate durations of rides planned.
- Multilingual user-interface 2. English 3. German
- Login page (mobile version)
- Drivers dashboard (english version)
- Planner view, showing three cars:
- Elmo 1 & 2 are used for car-sharing, Elmo 3 is used for passenger-service
- Elmo 1 shows a temporary/interactive selection used for defining periods of car-sharing
- Elmo 2 shows an already reserved car-sharing
- Elmo 3 shows shifts of passenger-service
- Administration
- Emails
Hint: Screenshots show German language
MAVEN_OPTS=--add-opens=java.base/java.util=ALL-UNNAMED mvn -Dorg.slf4j.simpleLogger.log.org.openapitools.codegen.TemplateManager=WARN -P release
java -Dspring.active.profile=production -jar target/elmo-*-runnable.jar
Define a Spring profile production
similar to the development profile local. Change existing values and add properties for social login, mailing and SMS texting as shown in section development.
Open in browser: http://localhost:8080
Hint: Social login on localhost only works using Webpack development server (see below) because service and webapp have to use different hostnames what applies for development server since UI is started for localhost:3000 but Spring Boot container runs on localhost:8080.
Possible configuration attributes you can provide in a file application-production.yaml
in the directory from which you start the application.
Checkout the sections elmo
and translations
in the files application.yaml and application-local.yaml. Most thing are self-explaining. For the rest read the listing underneath:
elmo.gateway-url
: The public URL which point to the Elmo application (e.g.https://app.elmo.com
)elmo.sms.support
: Whether to use a drivers cell-phone to send SMS (see App-Wrapper).elmo.passenger-service-phone-number
: The drivers cell-phone's number.elmo.admin-identification-email-address
: Once a new social login is registers having this email address, the account is created without onboarding and admin-permissions are given out.elmo.admin-member-id
: A predefined member id of the administrator.elmo.email.sender
: The sender address for emails sent (e.g. [email protected])elmo.general-email-address
: The organisation's email address (e.g. [email protected])
Spring Boot's built in mechanism is used for social logins. For each you have to provide these properties:
- Google:
spring.security.oauth2.client.registration.google.client-id
: see https://console.cloud.google.com/apis/credentialsspring.security.oauth2.client.registration.google.client-secret
: see https://console.cloud.google.com/apis/credentialsspring.security.oauth2.client.registration.google.redirect-uri
: Use${elmo.gateway-url}/{action}/oauth2/code/{registrationId}
spring.security.oauth2.client.registration.google.scope
: Use["email", "profile"]
- Amazon
spring.security.oauth2.client.registration.amazon.client-name
: UseAmazon
spring.security.oauth2.client.registration.amazon.client-id
: see https://developer.amazon.com/loginwithamazon/console/site/lwa/overview.htmlspring.security.oauth2.client.registration.amazon.client-secret
: see https://developer.amazon.com/loginwithamazon/console/site/lwa/overview.htmlspring.security.oauth2.client.registration.amazon.authorization-grant-type
: Useauthorization_code
spring.security.oauth2.client.registration.amazon.redirect-uri
: Use${elmo.gateway-url}/{action}/oauth2/code/{registrationId}
spring.security.oauth2.client.registration.amazon.scope
: Use["profile"]
For some providers, like Amazon-Login, the are no default-values known by Spring Boot so, also the provider's properties need to be set:
- Amazon:
spring.security.oauth2.client.provider.amazon.id
: Useamazon
spring.security.oauth2.client.provider.amazon.authorization-uri
: Usehttps://www.amazon.com/ap/oa
spring.security.oauth2.client.provider.amazon.token-uri
: Usehttps://api.amazon.co.uk/auth/o2/token
spring.security.oauth2.client.provider.amazon.user-info-uri
: Usehttps://api.amazon.com/user/profile
spring.security.oauth2.client.provider.amazon.userNameAttribute
: Usename
As a last step of the passenger registration a confirmation email is sent which also includes a passenger agreement to be signed and sent to the organisation's leader board. It is provided as a prefilled PDF attachment.
Two PDF files has to be created manually, one for passenger registrations and one for driver registrations. This PDF should have spaces in which the registree has to fill her/his personal data. To prefill theses spaces with data recording during the online registration a CSV file has to be created containing descriptions were to put which data into the PDF.
To test this, run this command:
MAVEN_OPTS=--add-opens=java.base/java.util=ALL-UNNAMED mvn -Dcamunda-edition=ce clean package -P pdf
java -jar target/pdf-tool.jar src/test/attachments/passenger-agreement/configuration.csv src/test/attachments/passenger-agreement/data.csv src/test/attachments/passenger-agreement/template.pdf ~/Desktop/test.pdf
Hint: If you have limited space to place a certain text into PDF then you can limit the size by using the 'config.csv' column 'max_length'. Do test the limits use a very long value in the 'data.csv'.
Provide the directories containing the configuration files by using this properties:
elmo.passenger-agreement-pdf-directory
elmo.driver-agreement-pdf-directory
This software's architecture is based on BPMN processes. To view the models use an online viewer.
To run the workflows the Open-Source BPMN engine Camunda Platform 7 is used which is loose coupled by using VanillaBP. For editing the models Camunda's free modeler is available.
Run class at.elmo.ElmoApplication
from your favorite IDE and add JVM parameters like this:
-Dspring.security.oauth2.client.registration.google.client-id=XXXXXXX
-Dspring.security.oauth2.client.registration.google.client-secret=XXXXXXX
-Dspring.security.oauth2.client.registration.amazon.client-id=YYYYYYY
-Dspring.security.oauth2.client.registration.amazon.client-secret=YYYYYYY
-Delmo.passenger-agreement-pdf-directory=/media/sf_Shared/elmo/passenger-agreement
-Delmo.driver-agreement-pdf-directory=/media/sf_Shared/elmo/driver-agreement
[email protected]
[email protected]
[email protected]
[email protected]
-Delmo.initial-new-member-id=2
-Delmo.admin-member-id=1
-Delmo.sms.redirect-all-to='+436661234567'
-Delmo.sms.dont-redirect='+436661234567,+436661234567'
-Dspring.mail.host=my-smtp-host
-Dspring.mail.port=25
Values XXXXXXX
can be configured at https://console.cloud.google.com and for YYYYYYY
at https://developer.amazon.com/apps-and-games/login-with-amazon.
Run Webpack development server:
cd src/main/webapp
npm run start
Open in browser: http://localhost:3000
Hot module replacement is active. All requests having pathes matching /api
, *oauth2*
, /logout
will be proxied to http://localhost:8080/
.
The free tool OpenRouteService is used to plan rides.
https://openrouteservice.org/wp-json/ors-api/v1/api-doc/source/V2
ELMO was developed by Stephan Pelikan to support the non-profit organization ElektroMobil Gänserndorf.
If you need support to operate the system, feel free to create an Github issue having a label help wanted
. If you don't have the technical skills to operate this system get in contact with Phactum Softwareentwicklung GmbH which is a supporter of the project.
Copyright 2023 Stephan Pelikan
Licensed under the Apache License, Version 2.0