Skip to content

quarterturn/canesbroker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

canesbroker

NHL data parser and MQTT publisher for Carolina Hurricanes

Reads the JSON data from the NHL API and retrieves game data for the current Carolina Hurricanes game. Score data is published to an MQTT broker so simple clients can subscribe and do something eg. turn on a lamp for a goal light.

You can test simply with the mosquitto MQTT client like so: mosquitto_sub --id tester --port 1883 -h ec2-18-221-202-45.us-east-2.compute.amazonaws.com -t canes_data/canes_score -u "goallight" -P "bunchofjerks"

When a game is in progress you will see the score refreshed about once per second. This is done so a client can display a score immediately. Simple stuff like a goal light could get by with only updates during a score change.`

About

NHL data parser and MQTT publisher for Carolina Hurricanes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages