Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomaswaldmann/vmnlcli
command line interface for some dutch velomobile web sites
https://github.com/thomaswaldmann/vmnlcli
cli python velomobile
Last synced: 26 days ago
JSON representation
command line interface for some dutch velomobile web sites
- Host: GitHub
- URL: https://github.com/thomaswaldmann/vmnlcli
- Owner: ThomasWaldmann
- License: mit
- Created: 2019-12-03T22:07:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T10:32:21.000Z (8 months ago)
- Last Synced: 2024-10-07T22:21:55.695Z (29 days ago)
- Topics: cli, python, velomobile
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![velomobiel.nl QuattroVelo](https://gallery.welmers.net/main.php?g2_view=core.DownloadItem&g2_itemId=47348)
# vmnlcli
This is a command line interface for these dutch velomobile web sites:
- http://www.velomobiel.nl
- https://www.intercitybike.nlIt 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 directoryOnly once, you need to find out the VMID (internal numerical identifier for your velomobile):
vmnlcli --site http://www.velomobiel.nl --email [email protected] --password CarsSuck 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 [email protected] --password CarsSuck --vmid 12345678 update $1
#### myvm-date-km
vmnlcli --site http://www.velomobiel.nl --email [email protected] --password CarsSuck --vmid 12345678 update --date $1 $2
### Windows wrapper scripts
#### myvm-now-km.cmd
vmnlcli --site http://www.velomobiel.nl --email [email protected] --password CarsSuck --vmid 12345678 update %1
#### myvm-date-km.cmd
vmnlcli --site http://www.velomobiel.nl --email [email protected] --password CarsSuck --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