From 5340040f4978d87d6a5774d6688e0bcf3ca76089 Mon Sep 17 00:00:00 2001 From: Francisco Penedo Date: Mon, 9 Mar 2026 19:31:54 +0100 Subject: [PATCH] Add script to check for buyvm slice availability --- check_buyvm_slice_available.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 check_buyvm_slice_available.sh diff --git a/check_buyvm_slice_available.sh b/check_buyvm_slice_available.sh new file mode 100755 index 0000000..50a742a --- /dev/null +++ b/check_buyvm_slice_available.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +URL="https://my.frantech.ca/cart.php?gid=39" + +N=$(curl -s "$URL" \ + | pup '#product1 > div:nth-child(4) > div:nth-child(2)' \ + | grep -o '[0-9]\+') + +if [ "$N" -gt 0 ]; then + curl -n -d "KVM slices available: $N" https://ntfy.franpenedo.com/general +fi \ No newline at end of file