Coder Social home page Coder Social logo

nhl-notifier's Introduction

nhl-notifier

This repository is an easy way to connect the NHL stats to webhooks in IFTTT.

Currently two triggers are supported, score, and power play.

After you setup your webhooks on IFTTT you need to make a file called private_key with the key for your webhooks. The script will read the first line of that file to get your key.

Once the script is running, any time there is a new score or power play it will send an trigger to your IFTTT account in the format of [team_abbr]_score or [team_abbr]_power_play. The [team_abbr] is a lowercase team abbreviation, such as vgk for the Vegas Golden Knights.

For ECHL the events are prepended with echl_, so for example if you want the event to happen on Fort Wayne it would be echl_fw_score.

To setup Webhooks in IFTTT, go to this page:

https://ifttt.com/maker_webhooks

Connect to webhooks and go to settings. You should see a URL that looks like this:

https://maker.ifttt.com/use/

The part that is redacted is what you want to copy and add to a file called private_key in the same file as the notifier.py.

After that you want to go to your normal IFTTT account page. Make a new Applet and set the trigger to be 'Webhooks'

For the event name put in the event name as described above. Then connect the action to whatever action you want to have happen.

Updates

Jan 8, 2019 MAX_DELAY Exception Fixed Montréal Canadiens

nhl-notifier's People

Contributors

coledunsby avatar ephro avatar

Watchers

 avatar  avatar

Forkers

mrd0n

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.