You can configure the Jottacloud command-line client to send simple webhooks.
This allows jottad
to post messages when something important happens. jottad
currently sends the following messages:
When
jottad
startsWhen
jottad
stopsA status message at custom intervals
We have only implemented a couple of webhook messages initially, but we will add more eventually. We would love to hear your suggestions.
What is a webhook
Webhooks are a simple way to post messages to external sources, like Slack, from jottad
. They make use of normal HTTP requests with a JSON payload that includes the message text and some options.
jottad
sends messages with rich formatting in Slack format.
How to add a Webhook URL
To add a webhook URL to jottad
, simply use the webhook add
command:
jotta-cli webhook add [your url]
A message will be sent immediately that let you check if everything was received on the other end.
Status information from jottad will be sent every 6 hours by default. The status interval can be customized with the following command:
jotta-cli config set webhookstatusinterval [value]
[value] must conform to time duration as specified below:
E.g. 10m, 6h, 5h30m
See https://golang.org/pkg/time/#ParseDuration for more examples
How to remove Webhook URL
To remove a webhook URL from jottad
, simply use the webhook rem
command:
jotta-cli webhook rem [your url]
jottad
will no longer post messages to the URL.