A command-line utility to forward %hark messages from a desk to a webhook URL. This runs best as a background process.
./urbit-notifier <SHIP_URL> <SHIP_NAME> <SHIP_CODE> <DESK> <WEBHOOK> [INTERVAL]
Example:
./urbit-notifier http://localhost:80 zod lidlut-tabwed-pillex-ridrup talk http://httpbin.org/post 30
This will result in a POST
request to http://httpbin.org/post
every 30 seconds with every message from the talk
desk received within that interval.
To compile:
cargo build --release
Note: somewhat outdated
Demonstrating watching %hark events from the talk
desk and publishing to a Zapier webhook, which sends an email.
- Gracefully handle a non-connection to a ship and derive ship name from login page
- Harden desk-filtering logic (shouldn't add to the batch if it's not the right desk)
- Eliminate the
config.yml
step and accept command-line arguments - Allow a user-set polling interval; currently hard-coded to 2s