sioncronaich - A lightweight cron-job monitoring tool written in Python - from Gaelic "to synchronise, to chronicle"
sioncronaich wraps any shell command, captures its stdout, stderr and exit code,
then POSTs the result to the sioncronaich web app, which stores everything in a local SQLite
database and renders it in a simple web dashboard.
Quick start
1 — Start the web app
uv run uvicorn --factory sioncronaich.app:create_app --host 127.0.0.1 --port 8716
Pass --host, --port, and any other server options directly to uvicorn.
See uvicorn --help for the full list.
The app reads the following environment variables:
| Environment variable | Default | Purpose |
|---|---|---|
SIONCRONAICH_DB |
~/.local/share/sioncronaich/jobs.db |
SQLite database path |
SIONCRONAICH_ROOT_PATH |
/sioncronaich |
ASGI root path when mounted behind a reverse proxy |
SIONCRONAICH_FAILURES_ONLY |
(unset) | Set to 1, true, or yes to discard successful job results without storing them |
SIONCRONAICH_ALERT_EMAIL |
(unset — alerts disabled) | Send a failure-alert email to this address whenever a job exits non-zero |
SIONCRONAICH_SMTP_HOST |
localhost |
SMTP server hostname |
SIONCRONAICH_SMTP_PORT |
25 |
SMTP server port |
SIONCRONAICH_SMTP_FROM |
sioncronaich@<hostname> |
Sender address |
SIONCRONAICH_SMTP_USERNAME |
(unset) | SMTP login username |
SIONCRONAICH_SMTP_PASSWORD |
(unset) | SMTP login password |
SIONCRONAICH_SMTP_STARTTLS |
(unset) | Set to 1, true, or yes to issue STARTTLS after connecting |
SIONCRONAICH_SMTP_SSL |
(unset) | Set to 1, true, or yes to connect with SMTP_SSL (implicit TLS) |
LOG_CONFIG |
(unset — logs to stderr at INFO) | Path to a YAML logging config file |
2 — Wrap a command
sioncronaich --name "daily-backup" -- /usr/local/bin/backup.sh --full
The wrapper exits with the same exit code as the wrapped command, so existing cron alerting is unaffected. If posting to the web app fails, the error is printed to stderr but the exit code is still that of the wrapped job.
Usage: sioncronaich [OPTIONS] COMMAND...
Options:
--name TEXT Human-readable label for this job [required]
--endpoint TEXT URL of the POST /jobs endpoint
[default: http://127.0.0.1:8716/jobs]
--timeout INT HTTP request timeout in seconds [default: 10]
--failures-only Only report the job if it exits with a non-zero code
The endpoint can also be set via the SIONCRONAICH_ENDPOINT environment
variable so you don't have to repeat it in every crontab entry. The
--endpoint flag takes precedence if both are set.
export SIONCRONAICH_ENDPOINT=http://mon.example.com/sioncronaich/jobs
--failures-only is useful for jobs that run very frequently where only
failures are worth keeping. It can also be enabled globally on the server
via SIONCRONAICH_FAILURES_ONLY=1, which will discard successful results
regardless of how the script was invoked.
3 — Add to crontab
# m h dom mon dow command
0 3 * * * sioncronaich --name daily-backup -- /usr/local/bin/backup.sh
*/5 * * * * sioncronaich --name health-check -- /usr/local/bin/check.sh
4 — View the dashboard
Open http://127.0.0.1:8716 in a browser for a colour-coded table of recent job runs. stdout / stderr are available in collapsible panels.
The raw JSON API is also available:
| Method | Path | Description |
|---|---|---|
POST |
/jobs |
Ingest a new job result (used by sioncronaich) |
GET |
/jobs |
List job results as JSON (newest first) |
GET |
/ |
HTML dashboard |
Interactive API docs are served at http://127.0.0.1:8716/docs.
Reverse proxy with Caddy
sioncronaich is designed to be mounted at a sub-path behind a reverse proxy.
The default sub-path is /sioncronaich; override it with
SIONCRONAICH_ROOT_PATH.
example.com {
reverse_proxy /sioncronaich/* 127.0.0.1:8716
reverse_proxy /sioncronaich* 127.0.0.1:8716
}
Start the app with the matching root path:
SIONCRONAICH_ROOT_PATH=/sioncronaich \
uv run uvicorn --factory sioncronaich.app:create_app --host 127.0.0.1 --port 8716
The dashboard is then available at https://example.com/sioncronaich and the ingest endpoint at https://example.com/sioncronaich/jobs.
Logging
By default the app logs to stderr at INFO level. To use a custom logging
configuration, point LOG_CONFIG at a YAML file in the standard
logging.config.dictConfig
format. A ready-to-use example is provided at logging.yaml:
LOG_CONFIG=logging.yaml uv run uvicorn --factory sioncronaich.app:create_app
Development
uv sync --all-extras
uv run prek install
Metadata
Release files for sioncronaich 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sioncronaich-0.5.0.tar.gz | 33.4 kB | With provenance | Details for sioncronaich-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sioncronaich-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for sioncronaich-0.5.0-py3-none-any.whl |
Total release size: 69.5 kB
Release files / sioncronaich-0.5.0.tar.gz
| Download URL | sioncronaich-0.5.0.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e26a0d8566d70e8555782e75e0cca22a7220fbc55de5c6db80dee8b1f586f0a8
|
|
BLAKE2b-256 checksum How to use checksums |
8d6df9b9b7f46ee271a1d0c7be06ce2921380b5577aa917d18598ace225eafa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / sioncronaich-0.5.0-py3-none-any.whl
| Download URL | sioncronaich-0.5.0-py3-none-any.whl |
|---|---|
| Size | 36.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbe5d17beb86dfa4de88affd890da546aeb02a0040f3c83e4c3ef03754751126
|
|
BLAKE2b-256 checksum How to use checksums |
1c6312f711b8333bdee5fb300b58bf3307ed9bd10be291c83a88c2aa3572f5cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for sioncronaich 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sioncronaich-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.