Automatic room booking for Asimut. Get notified about your booking status with Telegram.
- Clone the repository
$ git clone git@github.com:remarcable/hackimut.git
$ cd ./hackimut
$ npm i
- Copy
.env.sample
to.env
and update the url and the credentials. Create a new telegram bot and paste the API token. Use @RawDataBot to retrieve your ownchatId
(message.chat.id
) and add it to.env
as well. You need it to send messages to yourself. - Copy
config.sample.js
toconfig.js
and update the file with your rooms and your desired bookings.- Edit
src/asimut/getRooms.js
with your roomGroupId (see the payload in the devtools network tab toasync-event.php
for the rooms you want to book). Executenpm run getrooms
and copy/paste them into your config. Sort them by booking priority (the script will try to book the rooms in this order by availability). - In the
bookings
object add all the bookings that should be created automatically.
- Edit
This is all you need to automatically create bookings on Asimut. The real benefit of using this project is to let it run automatically at a specified interval:
- [Recommended] Put this script on a server that is running 24/7. Use cronjobs to repeatedly execute this script.