vnstati_webhook add some context

This commit is contained in:
minoplhy 2023-10-31 14:32:06 +07:00
parent 55ac681574
commit 36a5485001
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
3 changed files with 21 additions and 1 deletions

20
vnstati_webhook/README.md Normal file
View File

@ -0,0 +1,20 @@
# VNSTATI webhook
A simple and maybe effective script to generate vnstati graph and send it to your discord via webhook!
# How to run?
```
curl -sL https://github.com/minoplhy/scriptbox/raw/main/vnstati_webhook/sti_discord.sh | bash -s -- -w WEBHOOK_URL ARGUMENTS GOES HERE!
```
## Arguments
`-w` DISCORD_WEBHOOK_URL
`-s` summary, hsummary, vsummary
`-d` DAYS
`-g` 0, 1, 2, 3
`-h` TEXT, optional
`-i` SCALE
`-t` `enable Image Transparent`
## Image
![ScreenShot](assets/screenshot.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -33,7 +33,7 @@ if [ -n "${days_limit}" ]; then
fi
if [ -n "${header_text}" ]; then
PARAMS+=("--headertext '$header_text'")
PARAMS+=("--headertext "$header_text"")
fi
if [ -n "${image_scale}" ]; then