56

GitHub - c-mnzs/footballNotifier: A Python application that sends you a SMS when...

 5 years ago
source link: https://github.com/c-mnzs/footballNotifier
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

footballNotifier

A Python application that sends you a SMS when the football team you support scores.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

  1. Download and install Python 3.6.
  2. Clone this repository.
  3. Open the terminal, navigate to the folder where your clone of this repository is located and type:

$ pip install -r requirements.txt

This will install all the necessary packages to run this script.

  1. Open config.ini.
  • 4.1. Add in your NUMBER and TEAM (e.g: Portugal, Sweden, Real Madrid)
  • 4.2. Go to Textlocal, register an account and then create an API_KEY here. Copy the API_KEY key and fill it in config.ini accordingly.
  1. Type $ python app.py in the terminal and the script will run for as long as you let it.

Textlocal has a limit of 10 messages per month, so let's hope your team doesn't score more than 10 goals per month!

If you follow these steps, you will receive a message on your phone when your team scores, as seen below: Example

To-Do

[ ] Add support for multiple teams.

[ ] Deploy the project on GitHub pages and allow more people to use this without having to install Python on their machine.

[ ] Probably re-do a lot of the code. I'm sure there are a lot of things I can optimize. I appreciate any PRs! :)

Thanks for checking the project!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK