Metadata-Version: 2.4
Name: healthcli
Version: 2.2.1
Summary: Simple local dead man's switch for cron jobs and scheduled tasks
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# health-cli
Run some checks periodically locally on your machine. Provide an interface for the status of these checks. The status inteface checks timestamps and is moderately robust (tries not to hide errors)

This is AI-generated and unreviewed code... for now. Also very young so liable to change but nothing like this existed.

## Motivation
Why is there nothing that does this already? I don't want to use docker or some onine services

## Alternatives and prior work
There are tools like monit and sentry. `cron` sends emails when things fail.

## Installation
``pipx install healthcli```

## Usage
Set up a check: `hccli add --every 1m curl website` and then in a cron job or systemd timer run `hccli run` periodcally

To check status of all checks run: `hccli`. I have this run in a [plasma-applet-commandoutput](https://github.com/Zren/plasma-applet-commandoutput) KDE widget which I set up with my tool kde-panel.

If you have a systemd timer  you can use `hccli add --every 25h --sdtimer backup-home` to ensure that the timer runs every 25h.

## Debugging 
If hccli is not running as expected you can run `hccli log` to see the logs of past `hccli` runs.

