This commit is contained in:
Dym Sohin 2023-10-04 02:20:32 +02:00
commit 3246de4e8d
6 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
1633502835

View File

@ -0,0 +1 @@
manually create a task for Readme-Driven-Development

12
index.php Normal file
View File

@ -0,0 +1,12 @@
<?php
/** Asyncron™
* a synchronized checklist verification
* (lightweight Dead Man's Snitch alternative)
*/
?>

7
meta.kdl Normal file
View File

@ -0,0 +1,7 @@
name "asyncron"
description "a synchronized checklist verification"
media-type "app"
tags "ping" "api" "checklist"
license "AGPL"
homepage "https://dym.sh/asyncron/"
source "https://source.garden/apps/asyncron/"

44
readme.md Normal file
View File

@ -0,0 +1,44 @@
# Asyncron™
> a synchronized checklist verification \
> (lightweight Dead Man's Snitch alternative)
## Premise
1. Give an interval on how often some task must be accomplished, and pinged
2. Check periodically
## Screenshot
![screenshot](screenshot.png)
## Installation
- put on a local network, or some subdomain prob
- script only needs read+write access to the current directory, to keep track of tasks and pings
- no database needed
- no javascript needed
## Usage
1. open script's url (eg. `http://ping.local`) and create some tasks
2. automate verification of accomplishments (like cron scripts)
3. for manual completion click on the task and press the «Ping Manually» button
### shell scripts and crontab
> `crontab -l`
```sh
15 10 * * * ~/backup.sh && curl -X PATCH 'http://ping.local/?backup'
```
### http API
- `GET` returns `1` if task was pinged and interval has not yet expired, otherwise `0`
- `POST` create/reactivate task
- `PUT` update description and/or interval
- `PATCH` ping a completion
- `DELETE` deactivate task
more details in the source code