Skip to content

Get the live box score, plays, and batter stats of your favorite MLB team right on your desktop.

Notifications You must be signed in to change notification settings

eat-sleep-code/baseball-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baseball Pi

How did the old 1970's Chevy jingle go? "Baseball, hot dogs, apple pie and Chevrolet, they go together in the good ol’ USA." Well what about baseball and RASPBERRY PI?

Get the live box score, plays, and batter stats of your favorite MLB team* right on your desktop.

View images and a short video of this device.

Hardware Requirements



Getting Started

  • Use raspi-config to:
    • Set the Memory Split value to a value of 16MB
    • Set up your WiFi connection
  • Connect the Raspberry Pi HQ Camera to your Raspberry Pi
  • Run sudo nano /etc/apt/sources.list** and uncomment the reference to the source repo

Installation

  • Installation of the program, any software prerequisites, as well as the e-ink display drivers can be completed with the following two-line install script.
wget -q https://raw.githubusercontent.com/eat-sleep-code/baseball-pi/master/install-baseball.sh -O ~/install-baseball.sh
sudo chmod +x ~/install-baseball.sh && ~/install-baseball.sh


Usage Example

baseball --team Orioles

Options

Options

  • --team : Set the MLB team name (default: D-backs)
  • --refresh : Set the refresh rate in seconds (default: 15)

Autorun

Want to start Baseball Pi every time you boot your Raspberry Pi? Here is how!

  • Run sudo nano /etc/systemd/system/baseball.service** and enter the following lines (be sure to specify your favorite team!):
[Unit]
Description=Baseball Pi service

[Service]
ExecStart=/usr/bin/python3 /home/pi/baseball/baseball.py --team Orioles
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=Baseball Pi
User=pi

[Install]
WantedBy=multi-user.target
  • Run sudo systemctl enable baseball.service
  • Run sudo systemctl start baseball.service
  • Run sudo reboot


IMPORTANT NOTICE

All game data is the property of Major League Baseball Properties, Inc. This code was created for personal use only and does not construe any rights to use this data without the express permission of Major League Baseball Properties, Inc. Other trademarks used throughout this repository are the property of their respective owners and are used for identification purposes only. You may not hold the owners and operators (or any associated parties) of the <eat-sleep-code /> websites and repositories liable or financially responsible for any damages including—but not limited to—emotional, physical, or financial damages incurred during or after the use of this repository or any referenced websites. Use of this repository and/or the code found within constitutes an agreement to these terms.

About

Get the live box score, plays, and batter stats of your favorite MLB team right on your desktop.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published