CLI interface to https://www.paybyphone.fr/
Project description
PayByBot 3
Originally forked from paybybot2, this packages implements a CLI interface to paybyphone, allowing you (for example) to automate parking.
Installation
pip install paybybot3
Usage
CONFIG_NAME
is the name of your configuration, it would be example_account
in the example configuration below.
--location
is often the district (eg 75001
). There are some special values that you can find out in the output of check
as locationId
.
Similarly, you can find --rate
as rateOptionId
in the output of check
.
alert
Usage: paybybot3 alert [OPTIONS] CONFIG_NAME
1. Check if there is an ongoing subscription
2. Else send a notification
Options:
--location TEXT
--help Show this message and exit.
check
Usage: paybybot3 check [OPTIONS] CONFIG_NAME
Check if there is an ongoing subscription
Options:
--location TEXT
--help Show this message and exit.
pay
Usage: paybybot3 pay [OPTIONS] CONFIG_NAME
1. Check if there is an ongoing subscription
2. Else pay
3. Check that the payment succeeded
4. Notify on failure
Options:
--location TEXT [required]
--rate INTEGER [required]
--duration TEXT [required]
--help Show this message and exit.
payment-accounts
Usage: paybybot3 payment-accounts [OPTIONS] CONFIG_NAME
Options:
--help Show this message and exit.
Configuration
paybybot3 allows you to store your configuration in a YAML file ~/.config/paybybot3.yml
.
Here is an example:
example_account:
plate: AB123CD
paybyphone:
login: "+330612345678"
password: password
email:
login: your-email@gmail.com
password: password
paymentAccountId: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
notify:
- your-email@gmail.com
notify_on_error:
- your-email@gmail.com
For the moment we only support Gmail to send you notifications. You will need an App Password.
The paymentAccountId
can be found in the output of the payment-accounts
command.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for paybybot3-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e801295b5d0e354905e14b4dc8534a1df1eeedb93265503efa0acfec5d7e564 |
|
MD5 | b43b8ae92f927f06ad157e1372a00c3a |
|
BLAKE2b-256 | 14eb46008f7499db3b9d0de799133e0b25a7e690c9217e16edf17b39150bc3b7 |