Skip to main content

Notifications for https://www.paybyphone.fr/

Project description

Simple bot that sends you an email when you didn’t pay your parking on https://www.paybyphone.fr/

Installation on a Raspberry PI

Install Chromium

Firefox doesn’t support headless mode on Debian yet.

sudo apt-get install chromium-browser

Install Chromedriver

  1. Go to the page of the latest armhf build on https://launchpad.net/ubuntu/trusty/+package/chromium-chromedriver

  2. Use this link in

    wget http://launchpadlibrarian.net/361669488/chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb

  3. Install gdebi

    sudo apt-get install gdebi

  4. Install chromedriver

    sudo gdebi chromium-chromedriver*.deb

  5. Put chromedriver in your path

    sudo mv /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver

Sources:

Install pip

sudo apt-get install python3-pip

Install paybybot

pip3 install paybybot
# next line is there to find the paybybot command
echo 'export PATH=~/.local/bin:$PATH' >> .bashrc

Configure your credentials

# ~/.paybybot
{Your phone number}:{PayByPhone password}

# ~/.email-creds
{Your email address}:{Email password}

For your email account, I advise you to use an app password. See here for Gmail.

Add a cron task

crontab -e

and write

50 8 * * * paybybot

to run paybybot everyday at 8:50

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paybybot-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

paybybot-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file paybybot-0.0.2.tar.gz.

File metadata

  • Download URL: paybybot-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for paybybot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 051aaa1d0df313ed79d7ad8ed2a2489282c25562d92556435fa70ba86b35fcc1
MD5 8a5483092a025177189a96dc13199e82
BLAKE2b-256 d198c3323ae1d91aada61d5d39af56c61a6be63d3e456b620d1a2c39c5640a23

See more details on using hashes here.

File details

Details for the file paybybot-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: paybybot-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for paybybot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f4f1f11591749736ca389718b255b4f8c05778b553d34258679cf8ae57c221
MD5 a04e8d07550ccd9bd466354c97e4855a
BLAKE2b-256 b67b306a484a5975b9b9bdc8389373ee3317d1fe83aedd539873274f8de72a70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page