MLB-LED-Scoreboard / mlb-led-scoreboard

An LED scoreboard for Major League Baseball :baseball:
GNU General Public License v3.0
599 stars 105 forks source link

Add Alexa device support #61

Closed craigm26 closed 2 years ago

craigm26 commented 6 years ago

This is based on a hypothetical that I would enjoy in terms of functionality. I currently have Alexa dev accounts and have built skills. It'd be nice to be able to say "Alexa, turn on the scoreboard" and the scoreboard turns on.

I realize there's a number of challenges associated with this issue, but it's a good opportunity for us to implement this feature. This is low on the totem pole for now.

ajbowler commented 6 years ago

Basically this sounds like you want an Alexa skill that runs a bash command, cause that's all that's needed to turn on the scoreboard.

"Alexa, turn on the scoreboard" => sudo python ~/insert_path/mlb-led-scoreboard/main.py

I think this makes a good candidate for a separate project and possibly combining both this project and the Alexa skill under a GitHub org.

craigm26 commented 6 years ago

Agreed with the direction of the response above. I'll create a github org (non-profit) and see how that goes. The alternate is gitlab as I do enterprise development there on a different pricing scheme.

I'll report back.

craigm26 commented 6 years ago

Alexa Device repo at new github org

trevor-viljoen commented 6 years ago

I've also done some Alexa work with AWS Lambdas handling the Alexa intents. Look into https://github.com/Miserlou/Zappa. You would probably need a small webserver running on the Pi, listening for calls from AWS to handle the local functions like turning on the scoreboard or asking for a score update, etc. Perhaps just a flask app, or something from node.js like loopback.io?

craigm26 commented 6 years ago

(flask ask)[https://github.com/johnwheeler/flask-ask] would be nice to have.

Would the Alexa part be as a skill or as a product (or both)? I've set up both partially, but I think we really want to simplify it to meet our design needs.