Home of the Squeezebox™ & Transporter® network music players.
Page 13 of 13 FirstFirst ... 3111213
Results 121 to 130 of 130

Thread: Raspberry Pi

  1. #121
    Senior Member lrossouw's Avatar
    Join Date
    Jan 2006
    Location
    Cape Town, South Africa
    Posts
    974
    Do you have that device? Does that support passthrough for DTS and AC3 via optical/coax digital out on the pi?
    Louis
    Last.fm

  2. #122

    SA distributor for Raspberry Pi and accesories

    Hi All,

    If you looking to get your hand on a raspberry Pi or the latest accesories for it, Electrocomp Express ar the official distributors and have them in stock. 011 4589055



    Quote Originally Posted by castalla View Post
    Think twice before using RS - they've had a dreadful record of delayed deliveries!

  3. #123
    Junior Member
    Join Date
    Mar 2013
    Posts
    2

    LCD with song titles

    I have just set up RPi with latest Squeezeplug image, and it basically works as expected. Had little usability problems until I found out on some tutorial that I need a browser in order to scan my music archive.
    Well, the next step is song title on LCD. I have a modest 16x2 char LCD or Nokia monochrome, and I'm looking for a way to communicate with the player in order to send the name of the song/file/whatever to the LCD. Python script can communicate with the LCD, but I need some API to poll the name from the player. Any idea?

  4. #124
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    1,466
    Quote Originally Posted by dummy View Post
    I have just set up RPi with latest Squeezeplug image, and it basically works as expected. Had little usability problems until I found out on some tutorial that I need a browser in order to scan my music archive.
    Well, the next step is song title on LCD. I have a modest 16x2 char LCD or Nokia monochrome, and I'm looking for a way to communicate with the player in order to send the name of the song/file/whatever to the LCD. Python script can communicate with the LCD, but I need some API to poll the name from the player. Any idea?
    I've not used this exactly but it looks like the server CLI should help. In http://127.0.0.1:9000/html/docs/help.html I've found the following notification specification :
    <playerid> playlist newsong [<current_title>] [<playlist index>]
    This signals the start of a new song, along with its "current_title " and "playlist index". For radio stations, only the "current_title" information is provided.
    4 SB 3 • iPeng (iPhone + iPad) • SqueezeLite • Squeezebox Server 7.6.2 (Debian 6.0) with plugins: CD Player, WaveInput by bpa • IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon Harris • Smart Mix by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • Just Covers by Tom Kalmijn • WeatherTime by Martin Rehfeld • Local Player, BBC iPlayer, SwitchPlayer by Triode • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  5. #125
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Quote Originally Posted by epoch1970 View Post
    I've not used this exactly but it looks like the server CLI should help. In http://127.0.0.1:9000/html/docs/help.html I've found the following notification specification :
    Well, it sure helped! Threw me in the right direction, so I added the following code to Adafruit's LCD Char program. Hope it helps someone else.

    import sys
    import telnetlib

    [....SKIP....]
    tn = telnetlib.Telnet("localhost","9090")

    tn.write("artist ?\n")
    tn.write("exit\n")
    A1 = tn.read_all()
    tn.close()

    tn = telnetlib.Telnet("localhost","9090")
    tn.write("title ?\n")
    tn.write("exit\n")
    B1 = tn.read_all()
    tn.close()

    A2 = A1.replace("%20"," ")
    B2 = B1.replace("%20"," ")

    ARTIST = A2[35:55]
    TITLE = B2[34:54]

    lcd = Adafruit_CharLCD()
    lcd.clear()
    lcd.message(ARTIST+"\n"+TITLE)

    It is my first contact with Python, so be gentle There are things to implement, like checking if the song has ID3, and I need to start this script every few seconds, because it can't detect when the song changes, but this is the general idea.

  6. #126
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    1,466
    Quote Originally Posted by dummy View Post
    There are things to implement, like checking if the song has ID3, and I need to start this script every few seconds, because it can't detect when the song changes, but this is the general idea.
    Well done.
    The CLI is incredibly powerful and enjoyable, I'm sure you see the crazy things you can do with it and a few programmable I/Os
    However, and since you're using something more elaborate than the C shell, I would advise quickly leaving telnet alone and exploring the JSON flavor of the CLI. All commands are the same, but error cases are much better handled and escaping/unescaping is done for you.
    Also, I think you can subscribe to events and get notified of song changes. I don't know how you would do that in JSON (actually I never really used notifications myself), but this is probably the best way to go.
    4 SB 3 • iPeng (iPhone + iPad) • SqueezeLite • Squeezebox Server 7.6.2 (Debian 6.0) with plugins: CD Player, WaveInput by bpa • IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon Harris • Smart Mix by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • Just Covers by Tom Kalmijn • WeatherTime by Martin Rehfeld • Local Player, BBC iPlayer, SwitchPlayer by Triode • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  7. #127
    Junior Member
    Join Date
    Apr 2010
    Posts
    10

    speeding up LMS start up on RPi

    Hi folks,

    I've got an RPi running raspbian wheezy and LMS in my car system.
    I have a 2GB USB3.0 hard drive (makes updating the music files a lot faster), a Logitech Touch and an RPi powered off a USB hub from the car cigarette lighter.
    The logitech touch has the unofficial USB output app and connects to the RPi via a short ethernet cable.
    LMS works fine with the RPi/Touch combo and a 40k file music collection (my entire home collection in lossless) and the USB output of the logitech touch goes to a Meridian Explorer DAC, then line out to the AUX IN of my car stereo...........musical bliss.

    Here's the problem I want to solve:
    When I start the car, the car stereo/nav system takes about 30s to start up, the Touch takes about 30s to start up but the RPi seems to take about 90s before the Touch can play anything.

    If the only thing I'm doing with the RPi is playing music from the LMS to the Touch to the Meridian, is there anything I can do, anything I can disable, that will bring the RPi startup time down to something like 30s? to 60s? I'm willing to uninstall lots of stuff if it is slowing things down but have no idea where to start.

    Thanks

  8. #128
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    hello,
    i heard recently about the raspberry pi and LMS.
    today i have a SYNO DS411 with LMS plus other apps, and my NAS is almost running 100% CPU & RAM all the time and accessing music takes time and even sometimes my library is not accessible.
    if i switch LMS on a raspberry will i get better performances? it is a good idea to use a Raspberry for LMS? will the itunes plugin will sill work? my LMS is used for 4 Squeezeplayers (Touch, duet et radios) will this work?
    do i need the Type B or the Type A is sufficient?

  9. #129
    Senior Member
    Join Date
    Jul 2005
    Posts
    251
    Quote Originally Posted by jayce996 View Post
    hello,
    i heard recently about the raspberry pi and LMS.
    today i have a SYNO DS411 with LMS plus other apps, and my NAS is almost running 100% CPU & RAM all the time and accessing music takes time and even sometimes my library is not accessible.
    Yes, the Pi with Raspbian runs LMS just fine. I have a 512MB Model B Raspberry Pi overclocked to 1GHz and it runs LMS like a champ. I used to run LMS on an 3GHz+ x86 AMD PC and haven't noticed any drawbacks after switching to the Raspberry Pi (OK, scanning the library takes longer but I do that only once in a while and scanning for "new" additions is still quick enough).

    Quote Originally Posted by jayce996 View Post
    will the itunes plugin will sill work?
    Sorry no idea about iTunes as I don't have it.

    Quote Originally Posted by jayce996 View Post
    hello,
    do i need the Type B or the Type A is sufficient?
    You probably want the Model B as this has 512MB RAM, two USB ports and an Ethernet connector The Model A has only 256MB RAM, one USB port and no Ethernet connector.

    The Model A will still run LMS (with the addition of a dongle for Wifi/Ethernet), but IMHO you'll be better off with the extra RAM and the wired Ethernet connector.

  10. #130
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Amazing !!!
    will buy it right now !!!
    thank you very much

Posting Permissions

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