A tool for send gancio event notification
.vscode | ||
adapter | ||
core | ||
model | ||
sample_configs | ||
.gitignore | ||
configuration.go | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
gancio.notification
A tool for sending Gancio event notifications.
This is intended to be a dumb tool that fetches Gancio events for the current day through its API and sends a formatted digest of events through various notification channels. As of now it supports:
- Telegram
- IRC
Building
- To build the project in your development environment run:
go build -ldflags="-s -w" -o gancio.notification
- To build a Docker image (even outside of a working Go development environment):
docker build -t gancio.notification .
Configuration
- environment: copy/edit the sample env file
- gancio instance conf: copy/edit the sample config file
Usage
# export env
set -a
. .env
set +a
./gancio.notification
or as a oneliner:
set -a && . .env && set +a && ./gancio.notification
Docker
- use
docker run
:
docker run -d \
--name gancio.notification \
--env-file .env \
-v /path/to/gancio_conf.json:/etc/gancio_conf.json \
gancio.notification:latest
- use
docker compose up -d
with a similar compose.yaml.