/parkanizer

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

parkanizer/tidaro

Parkanizer/tidaro auto reservation and notification solution. Currently company is named tidaro previously was known as parkanizer.

You can setup your week days that you want your bookings and preferred spots list separated by commas (i.e. wider spots).

PLEASE REMEBER ABOUT RELEASING UNSUED PARKING SPOTS - Remember that after you have released spot via Parkanizer app/webpage it'll not be booked again automatically by script for the same particular calendar date. You need to book it manually if you will need that spot in the end for this calendar date.

There is lots of speling mistakes, let them be :)

  1. I've had to run it as user's crontab not root (not: sudo crontab -e)
  2. I've changed chown of chromium directory to my username i.e. sudo chown myuser:mysuer /usr/bin/chromedriver

Sample crontab runnig at 00:05 daily

5 0 ** * DISPLAY=:0 cd /home/myuser/python/parkanizer/ && python3 parkanizer.py config.ini >> parkanizer.log 2>&1

Or newest alternative, after updating to Tidaro API's to situation when they don't reiterate through all open spots and you need to wait. Setup systemd service i.e. as following

/etc/systemd/system/parkanizer.service

[Unit] Description=Parkanizer After=network.target After=systemd-user-sessions.service After=network-online.target

[Service] WorkingDirectory=/DIRECTORY/TO/YOUR/PARKANIZER ExecStart=python3 parkanizer.py YOUR_CONFIG.ini Environment="DISPLAY=:0" User=YOURUSER Group=YOURGROUP Restart=on-failure TimeoutSec=30 RestartSec=120

[Install] WantedBy=multi-user.target