/skill-score

Deprecated Mycroft skill to report latest MLB scores

Primary LanguagePythonMIT LicenseMIT

score

Reports latest MLB scores

No longer updated or maintained.

Description

Skill-score is an application that enables Mycroft to answer user questions about Major League Baseball (MLB) scores. Mycroft is an open-source AI voice assistant. Skill-score uses panzarino's mlbgame API to report an MLB team's latest final scores, including live scores.

User input has the format:
"What is the {team}'s score?"

If a game is in progress, Mycroft will respond:
"The {team} are winning/losing {score} to {score} against the {opponent} in the top/middle/bottom/end of the {inning}."

If a game is not in progress, Mycroft will respond:
"The {team} won/lost {score} to {score} against the {opponent} {number-of-days} ago."

Next Goals

The next goals for skill-score are the ability to:

  • give the time of the next MLB game; and
  • support more leagues (e.g., National Football League, National Basketball League), depending on available APIs.

Examples

  • "what is the Royals score"
  • "what is the Angels score"
  • "what is the Yankees score"

Getting Started

Prerequisites

Download the following prerequisites:

  1. Mycroft - see installation details
  2. Mycroft Skills Manager (msm) - see installation details
    • msm will install skill-score in the correct directory with the necessary requirements
  3. If you are running on Mk.1 hardware (or PiCroft) you will need to manually install libxml2-dev and libxslt-dev using
sudo apt-get install libxml2-dev libxslt-dev

The mlbgame library relies on lxml, which depends on these two modules. Still searching for a way to have these installed automatically - see issue #20.

Installation

In the console, install skill-score using:

msm install https://github.com/deejcunningham/skill-score