Skip to content

Python3 script to retrieve and display today's baseball and/or hockey games

License

Notifications You must be signed in to change notification settings

ripred/sportslist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This python3 script will retrieve today's MLB or NHL games and display them ordered by start time, in your local time.
This is written using my other nhl api repo

You can edit the file to set your favorite teams and rivals in order to see them highlighted in color in the output.

This script is very useful in combination with GeekTool or Conky!

Running the script

Invoke the script using:

python3 sports.py [i k t c h b]

Options:

  • i = Use Bright Colors to hightlight favorite or rival teams
  • k = Use black background
  • t = color the time bright white
  • c = use ANSI color in output (required for any other color related options)
  • n = stop using ANSI color in output
  • h = include hockey games in output
  • b = include baseball games in output

Note that the option flags are evaluated in order and affect only the output specified (h or b) that comes after them. This allows you to turn on and off output decorations while outputting the list.

Example Use.

Sent to a display file every 5 minutes and then overlayed on my desktop using GeekTool:

python3 sports.py c t b

alt text

About

Python3 script to retrieve and display today's baseball and/or hockey games

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages