Checks https://ipr.esveikata.lt for available appointments and notifies user about available spots for specialists.
- bash shell
- jq (^1.6)
- LINE Notify token (requires LINE account: https://line.me/en/)
For notifier to work you need to set up some variable.
Set up env.conf
file with parameters for:
MUNICIPALITY_ID
and PROFESSION_CODE
or ORGANIZATION_ID
. These can be obtained from:
- Visiting: https://ipr.esveikata.lt/
- Right click on page and select
inspect
(shortcut isF12
) selectNetwork
tab - Apply search filters on page and click
Ieškoti
- You can filter responses by entering
times
or scroll manually until you see line near columnFile
times?municipalityId=11
, where11
is number for selected municipality. Other filter variable will be shown after this - Fill these variables in
env.conf
.
Also you need to register LINE account to be able to generate LINE Notify
token.
Using linux system can be set up using crontab
(command crontab -e
)
Add this line to run script every 15 minutes between 7-23 hours monday to saturday:
*/15 7-23 * * 1-6 /home/pi/projects/esveikata-notifier/notificator.sh