Skip to content

Instantly share code, notes, and snippets.

@slm0n87
Last active August 5, 2021 17:05
Show Gist options
  • Save slm0n87/5acdaf4a31c9606b00282b30383cce05 to your computer and use it in GitHub Desktop.
Save slm0n87/5acdaf4a31c9606b00282b30383cce05 to your computer and use it in GitHub Desktop.
check therme erding reservations
#!/bin/bash
# replace day by your wishday
# replace your-email-address by your-email-address
# run this script as cron
curl -s 'https://thermenreservierung.de/erding/index.php?task=get_day_time_line_service&tmpl=component' --data 'id_emp=-1&id_ser=1&day=1628460000&people=1&locations=' | jq . | head -n 17
diff -u /root/response /tmp/response || diff -u /root/response /tmp/response | mail -s 'Therme Erding timeslot changed' your-email-address
cp /tmp/response /root/response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment