Announcing: TivoSlimserverClient (alpha)

Discussion in 'Developers Corner' started by mondelicious, May 10, 2006.

  1. WhoAmI

    WhoAmI New Member

    25
    0
    Nov 11, 2006
    MA
    I tried this today and got a similar error as the one diomark posted. I'm new to this HME stuff, so bear with me (though I know Unix and write software).

    I'm using a G3 Mac with 10.3.9 and a TiVo MCD540 (Series 2, stock). I downloaded SlimServer 6.5.0 and it seems to be running (the web interface is up, shows tunes), but I haven't connected any other clients to it (tried a little with iTunes, didn't get too far). I downloaded your .dmg 2.0a version first, and it repeatedly died when I connected to it with the TiVo, with an error "closed during a read (0x50006)". The console shows this right after "artists?":

    Note I had to edit my console dumps because they look like URLs which as a newbie I can't post... I can e-mail you proper dumps.

    Code:
    The%20El%20La%20Los%20Las%20Le%20Les
    artists ?
    ?
    LOG: HME receiver disconnected
    LOG: Unexpected error: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
    
    Then I looked in this thread and saw that the .dmg was out of date, so I got the 0.2.1a zipped copy and ran that. It gets a lot farther, but dies with the same "read error" on the TiVo and this error on the console:

    Code:
    playlist index ?
    ist index 0
    java.lang.NumberFormatException: For input string: "ist index 0"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
     <snip>
    null
    players count ?
    ?
    ?
    players count ?
    ?
    ?
    LOG: HME receiver disconnected
    LOG: Unexpected error: java.lang.NumberFormatException: For input string: "?"
    
     
  2. briguymaine

    briguymaine Visual Assault Cmdr.

    190
    0
    Mar 17, 2004
    Beautiful Maine
    Hi all,

    Can someone who knows what they are doing give the rest of us a step by step on how to get 0.2.1a running on a mac. I love this HME app but Terminal and I don't get along very well!

    Thanks in advance
    B
     
  3. WhoAmI

    WhoAmI New Member

    25
    0
    Nov 11, 2006
    MA
    It's pretty easy (trust me, as Unix stuff goes, this is very simple):

    1. download the TivoSlimserverClient-0.2.1a.zip file
    2. unzip it (Stuffit might do it automatically depending on your brower); you should then have a folder of stuff
    3. run Terminal, open a new terminal window

    now here's the only potentially tricky part -- finding where you put it
    if it were on the Desktop, it'd be in ~/Desktop, but you might have it somewhere else
    there's a neat trick with Terminal where you can drag an icon to the window and it
    will give you the path to it

    4. in the terminal window, go where it is (type this stuff after the $ prompt)
    'cd' means 'change directory' (directory=folder)
    if it's on your desktop, you could do something like this (note the extra '\' in front of the space in the folder name):
    Code:
    cd ~/Desktop/TivoSlimserverClient-0.2.1a\ Folder/TivoSlimserverClient-0.2.1a/
    if you put it in Applications, you might do this:
    Code:
    cd /Applications/TivoSlimserverClient-0.2.1a\ Folder/TivoSlimserverClient-0.2.1a/
    if you want to use the drag-and-drop trick, type 'cd' and then a space and then drag the folder from the Finder and drop it on the Terminal window; the path to the folder should appear -- mine on the desktop looks like this:
    Code:
    cd /users/me/Desktop/TivoSlimserverClient-0.2.1a\ Folder/TivoSlimserverClient-0.2.1a/
    5. run it (type this in the Terminal window)
    Code:
    ./start.sh
    6. you'll see text output in the terminal window, including errors

    7. to stop it, type ctrl-c (hold down Control and 'c') in the Terminal window
     
  4. briguymaine

    briguymaine Visual Assault Cmdr.

    190
    0
    Mar 17, 2004
    Beautiful Maine
    That got it running, thanks!

    Now I just have an issue that started last week and got me trying to install all of the updates. I start to browse any of the options, Artist, Album, Genre, PLaylist and I get "an error occured while running the application. The application closed during a read (0x50006)"

    Anyone have any ideas? I'm running iTunes 7 with my music on an external drive but the library file in Brian/Music/iTunes/iTunes Library

    Here is what Terminal had to say when it wigged out:

    LOG: HME receiver connected
    192.168.1.102 status - 1
    192.168.1.102 playlist index ?
    TivoSlimserverClient[#1,uri=null] warning: resource 2063 not found.
    TivoSlimserverClient[#1,uri=null] warning: resource 2063 not found.
    LOG: Received event for unknown resource id. Id = 2063, event = 2063.RESOURCE_INFO(complete, {})
    ?
    java.lang.NumberFormatException: For input string: "?"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:447)
    at java.lang.Integer.parseInt(Integer.java:497)
    at com.edmondcho.tivoslimserverclient.TivoSlimserverClient$Status.loadIndex(TivoSlimserverClient.java:412)
    at com.edmondcho.tivoslimserverclient.TivoSlimserverClient.tick(TivoSlimserverClient.java:128)
    at com.tivo.hme.sdk.util.Ticker.run(Ticker.java:143)
    java.lang.NullPointerException
    at com.edmondcho.tivoslimserverclient.NowPlayingScreen.showStatus(NowPlayingScreen.java:180)
    at com.edmondcho.tivoslimserverclient.TivoSlimserverClient.tick(TivoSlimserverClient.java:130)
    at com.tivo.hme.sdk.util.Ticker.run(Ticker.java:143)
    192.168.1.102 playlists 0 1000
    192.168.1.102 playlists 0 1000
    LOG: connection to receiver closed
    LOG: HME receiver disconnected
    LOG: Unexpected error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    LOG: 192.168.1.2 icon.png HTTP GET - to factory /tivoslimserverclient/
     
  5. mman

    mman New Member

    2
    0
    Feb 13, 2004
    winxp pro - no firewall
    Slimserver 6.5
    Tivo S3
    TivoSlimserverClient-0.2.1a started with:
    java -cp lib/bananas.jar;lib/hme-host-sample.jar;lib/hme.jar;lib/TivoSlimserverClient-0.2.1a.jar com.tivo.hme.host.sample.Main --intf x.x.x.x com.edmondcho.tivoslimserverclient.TivoSlimserverClient

    And this is in my cmd window when I try to connect from the tivo.
    Does anybody know what could be causing this ?
    Does anybody have this working with XP?

    playlist index ?
    laylist index 0
    java.lang.NumberFormatException: For input string: "laylist index 0"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
     
  6. WhoAmI

    WhoAmI New Member

    25
    0
    Nov 11, 2006
    MA
    I'm not a Java programmer but I do know other languages -- these all look like the same basic error to me. If I were to hazard a guess, I'd say the format of some of the Slimserver data has changed, and this client is a bit brittle about it and is blowing up as a result (hey, whatdya want for 0.2!). It's probably pretty straightforward to fix, and I would guess the author will know what it is fairly quickly after looking at it (when he gets a chance). I doubt it is due to TiVo or OS varieties, though it's always worth checking. One way to test this theory is to roll back to Slimserver 6.3 -- does anyone have that (I don't)?
     
  7. jlac839

    jlac839 New Member

    66
    0
    Nov 6, 2004
    San Jose, CA
    Hi,

    I wanted to try your TivoSlimserverClient and set it up on my Windows 2000 server system where I also run TiVo HME. My music library is set up on an Infrant ReadyNAS 600 Network storage system which has the ability to run slimserver built into it. It wasn't until I had it all set up (and it wouldn't work) that I saw the remark on the download page that the client will only run on the same host as TiVo HME.

    The error I received was a "Connection refused" error which first of all led me to review security settings etc. However, if the TivoSlimserverClient is looking for slimserver within the same host, then the error makes sense.

    Anyway, my request is, of course, to allow the specification of a different host for the slimserver itself either by IP or DNS or both.

    Thanks for listening.
     
  8. mondelicious

    mondelicious New Member

    29
    0
    Jul 26, 2005
    I am back.

    Quickly, the first thing I found is that the "players count ?" command is no longer valid. I had to change it to "player count ?" to get anywhere.

    Sorry to leave people hanging like that.

    Anyway, I am making these little changes as I find them. Thanks for all the reporting here.

    I will attempt to allow a separate server in a future release.

    Ed
     
  9. diomark

    diomark New Member

    19
    0
    Nov 3, 2006
    I just bit the bullet and bought another squeezebox for our living room.. (other was in bedroom)

    I'll still test this when i get a chance tho... Thanks for working on it!
    -mark

     
  10. diomark

    diomark New Member

    19
    0
    Nov 3, 2006
    PS - personally now I'd love to see my 'now playing' list for any given squeezebox on tivo:) or if the player was using the slim protocol and not streaming, you could just sync the player w/ tivo...
    -m

     
  11. mondelicious

    mondelicious New Member

    29
    0
    Jul 26, 2005
    Hey,

    Any of our more experienced users want to give me advice on modifying my shell script?

    Specifically, I would like to support an optional --intf flag that would allow a user to start up hme on a specific interface. If the flag is called by the script, use it with the java command. Otherwise, just leave it out and use the default interface.

    Thanks.
    Ed
     
  12. mondelicious

    mondelicious New Member

    29
    0
    Jul 26, 2005
  13. gonzotek

    gonzotek tivo_xml developer

    2,538
    59
    Sep 24, 2004
    Outside...
    I had success running it under WinXP with 6.5 today, with two repeatable exceptions. When the queue or playlist containers are empty the session is dropped, yet you can re-enter the app from the simulator or TiVo menus. Nonetheless, great work! Let me know if I can do any specific testing or whatever.
     
  14. briguymaine

    briguymaine Visual Assault Cmdr.

    190
    0
    Mar 17, 2004
    Beautiful Maine
    Hi, great app (loved it when it worked for me!)

    OK, I downloaded the new version and I'm attempting to run it on a G4 with OS X.4.8 and Slimsever 6.5.

    I can browse, add music to the queue, and choose prefs but Play Now doesn't work and checking the queue makes the app crash. (during a read 0x50006)

    hmm, lil help...

    Thanks, Brian
     
  15. mondelicious

    mondelicious New Member

    29
    0
    Jul 26, 2005
    Hi, brigyumaine.

    Sorry to hear you're having trouble. The queue screen crash was reported by gonzotek in the previous message, and I consider that a known issue now. I will fix it in the next version.

    The first thing I would check is the Choose Player screen. Make sure that you are adding songs and trying to Play Now to the right stream. Your Tivo's ip should be highlighted yellow.

    If that is still not working, try waiting for a few seconds for the slimserver to respond.

    When you Play Now, do you get the "playing song now..." message that fades away?
     
  16. briguymaine

    briguymaine Visual Assault Cmdr.

    190
    0
    Mar 17, 2004
    Beautiful Maine
    I did check the settings and the IP looked right but I didn't double check it.

    And yes, I get "playing song now..." and it fades away, I will try waiting longer for the tunes to start!

    I love the app and was stoked to see you had built this, slim server is the best interface I've used. Thanks for your hard work.
     
  17. gws

    gws New Member

    2
    0
    Sep 10, 2006
    Any hope for us poor Directv customers? I have hacked my tivo and enjoy the added featuers and access to content. I was recently pointed toward the slimserver software and would like to stream from that rather than from hme. This client seems great accept that it is not compatible with the directv series2 tivos. Anyone have any plans to port it?

    Guy
     
  18. mcharkowski

    mcharkowski Member

    50
    0
    Aug 11, 2004
    Epping, NH
    Gonzotek, any chance you'd mind sharing the command you're using to start it up? I can't seem to get anything to work. I think I've just got the syntax wrong on the command. Any help would be appreciated.
     
  19. briguymaine

    briguymaine Visual Assault Cmdr.

    190
    0
    Mar 17, 2004
    Beautiful Maine
    Just to report back on my problem mentioned above, I checked the ip of my tivo and I am choosing the correct one. I clicked on play now and left it while I did the dishes and nothing ever happened.

    Like I said, great idea and when I had it working, it was awesome. I received an xbox 360 for xmas and that is handling my music, photo, and video streaming needs now (even on my mac). I guess what I'm saying is, don't worry about me, I'll be fine! ;-)
     
  20. gonzotek

    gonzotek tivo_xml developer

    2,538
    59
    Sep 24, 2004
    Outside...
    I switched laptops recently, and I still need to migrate my files from the old one. I'll post the batch file as soon as I can :)
     

Share This Page