diff --git a/vnstati_webhook/README.md b/vnstati_webhook/README.md new file mode 100644 index 0000000..7076256 --- /dev/null +++ b/vnstati_webhook/README.md @@ -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) \ No newline at end of file diff --git a/vnstati_webhook/assets/screenshot.png b/vnstati_webhook/assets/screenshot.png new file mode 100644 index 0000000..8de5496 Binary files /dev/null and b/vnstati_webhook/assets/screenshot.png differ diff --git a/vnstati_webhook/sti_discord.sh b/vnstati_webhook/sti_discord.sh index 4de2fd8..f45f00f 100644 --- a/vnstati_webhook/sti_discord.sh +++ b/vnstati_webhook/sti_discord.sh @@ -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