A script to query Last Mile Solutions prepaid card values
Project description
lms-prepaid
A python script to retrieve balances for last mile solutions electric car charging prepaid card (this includes Entega prepaid cards)
Installation
pip install lms-prepaid
Development
lms-prepaid
uses poetry
Usage
lms-prepaid -c AB-123456-X
See also: lms-prepaid --help
Poetry setup
- Install poetry:
pip install poetry
(see the poetry homepage for alternatives) - Install
lms-prepaid
:poetry install
- Run:
poetry run lms-prepaid --help
Environment variables
The script will use the following environment variables:
LMS_PREPAID_DATABASE
for the path to the sqlite database- defaults to
lms-prepaid.sqlite
int the CWD
- defaults to
LMS_PREPAID_CARD
for the card numberLMS_PREPAID_GOTIFY_URL
for the gotify notification serverLMS_PREPAID_GOTIFY_TOKEN
for the gotify app tokenLMS_PREPAID_GOTIFY_PRIO
for the gotify notification priority
Docker usage
- Build the docker image:
docker build -t lms-prepaid .
- Launch the image with with set environment variables:
docker run -e LMS_PREPAID_CARD=AB-CDE-123456-X lms-prepaid
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lms-prepaid-0.1.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for lms_prepaid-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4280349e15dddec3601f145b2e2757cb6b211359e03d2bdd74ca4ecad7f749 |
|
MD5 | 99750e5469188d17a7be3a9e8d0c5d6f |
|
BLAKE2b-256 | 67ac2df7ae0d10d066c1137d2a33d8d266e791c3f499b9e2d936d5661c4408b7 |