Update Usage section in README

This commit is contained in:
Kumi 2023-08-25 07:39:11 +02:00
parent 619aa99e35
commit 42b60cf56b
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -31,9 +31,15 @@ Then copy `config.dist.ini` to `config.ini` and fill in your KeyDelivery API det
## Usage ## Usage
To add a new shipment, run `python trackbert.py --tracking-number <tracking-number> --carrier <carrier-id>`. Find the required carrier ID in the [KeyDelivery API management](https://app.kd100.com/api-management). First, assure that the virtual environment is activated:
To run the main loop, run `python trackbert.py`. This will check the status of all shipments every 5 minutes, and print the status to the console. If the status of a shipment changes, you will get a desktop notification. ```bash
source venv/bin/activate
```
To add a new shipment, run `trackbert --tracking-number <tracking-number> --carrier <carrier-id>`. Find the required carrier ID in the [KeyDelivery API management](https://app.kd100.com/api-management).
To run the main loop, run `trackbert`. This will check the status of all shipments every 5 minutes, and print the status to the console. If the status of a shipment changes, you will get a desktop notification.
## License ## License