Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (30 loc) · 1.19 KB

File metadata and controls

42 lines (30 loc) · 1.19 KB

Jadloop

ARCHIVED: Unfortunately, their public API is now protected by recaptcha.

A script for displaying package tracking info from Jadlog's API.

Usage: jadloop <command> <tracking_number>

Commands:
   get          Display the current tracking info.
   get-changes  Display only new info (i.e., changes since last called).
   notify       Same as 'update', but also show a desktop notification.
   reset        Reset the cached info used by 'update' and 'notify'.

Requirements

On Debian/Ubuntu based systems:

apt install curl libnotify-bin pandoc

Systemd service and timer

Also included in this repo are a couple of systemd unit files that enable notifications of tracking updates to your desktop. To install them, put them in the ~/.config/systemd/user directory, and activate the timer like so, substituting in your tracking number:

systemctl enable --now --user jadloop@TRACKING_NUMBER.timer

You may edit the timer unit file to change the update period. By default, it checks for new information every 20 minutes.