vmnlcli
This is a command line interface for these dutch velomobile web sites:
It might also work for other velomobile sites hosted at welmers.net which use the same server side software.
Using it, you can script updating / publishing your velomobile's odometer value (overall km distance of your velomobile), so you do not need to manually log in / fill out a form / log out.
Installation
You need to have Python >= 3.5 installed. See https://www.python.org/ if you don't have it already.
On a shell (linux terminal, windows cmd.exe), enter this to install the vmnlcli software:
pip3 install vmnlcli # system-wide installation, might require root/admin
or
pip3 install --user vmnlcli # install into user's home/profile directory
Only once, you need to find out the VMID (internal numerical identifier for your velomobile):
vmnlcli --site http://www.velomobiel.nl --email 'you@example.org' --password 'CarsS*ck' vmid
Let's assume it displayed that your VMID is 12345678.
Now you can write 2 small wrapper scripts (they slightly differ for linux vs. windows).
Linux wrapper scripts
myvm-now-km
vmnlcli --site http://www.velomobiel.nl --email 'you@example.org' --password 'CarsS*ck' --vmid 12345678 update $1
myvm-date-km
vmnlcli --site http://www.velomobiel.nl --email 'you@example.org' --password 'CarsS*ck' --vmid 12345678 update --date $1 $2
Windows wrapper scripts
myvm-now-km.cmd
vmnlcli --site http://www.velomobiel.nl --email 'you@example.org' --password 'CarsS*ck' --vmid 12345678 update %1
myvm-date-km.cmd
vmnlcli --site http://www.velomobiel.nl --email 'you@example.org' --password 'CarsS*ck' --vmid 12345678 update --date %1 %2
Usage
You just came home, odometer showed 4321 km and you want to update the site:
myvm-now-km 4321
Or, you noted that your odometer showed 4321 km at 2019-12-31 and you want to update the site with that:
myvm-date-km 2019-12-31 4321
Metadata
Release files for vmnlcli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vmnlcli-0.2.0.tar.gz | 5.0 kB | Without provenance | Details for vmnlcli-0.2.0.tar.gz |
Release files / vmnlcli-0.2.0.tar.gz
| Download URL | vmnlcli-0.2.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3272bfa3af5c5505d6c64affccf57286f84c1e3b88b440c782892e3bc5d64264
|
|
BLAKE2b-256 checksum How to use checksums |
b69fb43c42ecc2e6958f4a231264ed2134dfd8866e8fe21656abd720ca1b2b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
|
Security for vmnlcli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.