Last active
August 5, 2021 17:05
-
-
Save slm0n87/5acdaf4a31c9606b00282b30383cce05 to your computer and use it in GitHub Desktop.
check therme erding reservations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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