Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37

Thread: HOWTO: MLB Baseball scores from the command line!

  1. #31
    Join Date
    May 2010
    Location
    Toronto, Canada
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: MLB Baseball scores from the command line!

    Im trying to write a python script that will have a similar output as above in my conky. Unfortunately there is no output.
    NOTE: using the following command, the output is fine but is off centred
    TEXT
    ...
    ${texeci 7200 lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A6 "American League"}



    The python script is as follows:

    import webbrowser

    webbrowser.get('lynx')

    lynxcmd = "lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -i -A6 American\ League"

    data = os.popen(lynxcmd).read()
    print data


    any help with this people? It would be really appreciated.

  2. #32
    Join Date
    Apr 2010
    Location
    United States
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: MLB Baseball scores from the command line!

    This is great!

  3. #33
    Join Date
    Oct 2008
    Location
    Toronto, ON, Canada
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: MLB Baseball scores from the command line!

    This is great! Thanks so much for this!

    One more question though that would be really useful... does anybody know a command to see all of the scores on the command line (that could go into conky) or a way to distinguish it with all AL scores?

    That would be immensely useful to me, but I am at a loss.

    Thanks!

  4. #34
    Join Date
    Oct 2008
    Location
    Toronto, ON, Canada
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: MLB Baseball scores from the command line!

    Figured out a way to get all scores for those who are interested:


    lynx -nonumbers -dump http://wap.mlb.com/scores/ | egrep -e vs

  5. #35
    Join Date
    Mar 2007
    Location
    British Columbia
    Beans
    21
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: MLB Baseball scores from the command line!

    Any idea why my conky does not display the entire data?

    Code:
    # --- Window Layout & Options --- #
    own_window yes
    own_window_colour brown
    own_window_transparent yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_spacer right
    use_xft yes
    alignment top_left
    gap_x 15
    gap_y 5
    
    # --- Colours, Sizes, Fonts & Margins --- #
    update_interval 1
    maximum_width 500
    stippled_borders 3
    border_width 9
    default_color grey
    
    # --- Text --- #
    draw_outline no
    draw_borders no
    font Crackdown R BRK:size=10:weight=bold
    uppercase no
    draw_shades yes
    
    TEXT
    
    ${color red}MLB ${hr 2}$color
    ${font freemono:size=10}${color white}${execi 30 lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A12 "American League" }${font}
    Attached Images Attached Images
    Unbuntu 10.04
    Dell 4500
    768 MB RAM

  6. #36
    Join Date
    Feb 2005
    Beans
    7

    Re: HOWTO: MLB Baseball scores from the command line!

    No idea but mine is the same way, cuts off at Tampa Bay.
    It's got to be in teh .conkyrc file, some switch.
    Don't know anything about conky but perhaps someone who cares will chime in.
    Code:
    # --- Window Layout & Options --- #
    own_window yes
    own_window_colour brown
    own_window_transparent yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_xft yes
    alignment top_left
    gap_x 1300
    gap_y 35
    # --- Colours, Sizes, Fonts & Margins --- #
    update_interval 1
    maximum_width 350
    stippled_borders 3
    border_inner_margin 9
    border_width 9
    default_color grey
    
    # --- Text --- #
    draw_outline no
    draw_borders no
    font Monospace:size=8:weight=bold
    uppercase no
    draw_shades no
    
    TEXT
    #${texeci 3600 feh --bg-scale "/usr/share/wallpapers/MEPIS11.0-wallpaper.jpg"}
    ${color lightblue} MLB ${hr 2}$color
    ${font freemono:size=10}${color white}${execi 30 python ~/.conky/baseball.py}

  7. #37
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: HOWTO: MLB Baseball scores from the command line!

    Old thread is old. Closed.

Page 4 of 4 FirstFirst ... 234

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •