aboutsummaryrefslogtreecommitdiff
path: root/.scripts/checkapts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/checkapts')
-rwxr-xr-x.scripts/checkapts13
1 files changed, 0 insertions, 13 deletions
diff --git a/.scripts/checkapts b/.scripts/checkapts
deleted file mode 100755
index 3319c23..0000000
--- a/.scripts/checkapts
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-flat=$(curl "https://tl1host.eu/SWTUE/ajax/privroom/search?languageId=1&s_Group=T%C3%BCbingen&s_Einzugsbereich=-1&s_ZimmerArt=3&s_Mietobergrenze=500&s_AnzahlZimmer=1" | jq length)
-apt=$(curl "https://tl1host.eu/SWTUE/ajax/privroom/search?languageId=1&s_Group=T%C3%BCbingen&s_Einzugsbereich=-1&s_ZimmerArt=2&s_Mietobergrenze=500&s_AnzahlZimmer=1" | jq length)
-
-if [ $flat -ne 0 ] || [ $apt -ne 0 ]; then
- export XAUTHORITY=/home/melvin/.Xauthority
- export DISPLAY=:0
- export XDG_RUNTIME_DIR=/run/user/1000
- export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
-
- notify-send -u critical "Interessante StuWe Wohnung!" "tl1host/#privateroom"
-fi