Results 121 to 130 of 130
Thread: Raspberry Pi
-
2013-01-23, 05:23 #121Louis
Last.fm
-
2013-02-18, 03:13 #122Junior Member
- Join Date
- Feb 2013
- Posts
- 1
-
2013-03-25, 17:44 #123Junior 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?
-
2013-03-27, 15:48 #124Senior Member
- Join Date
- Apr 2008
- Location
- Paris, France
- Posts
- 1,466
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.
-
2013-04-01, 06:29 #125Junior Member
- Join Date
- Mar 2013
- Posts
- 2
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.
-
2013-04-01, 15:10 #126Senior Member
- Join Date
- Apr 2008
- Location
- Paris, France
- Posts
- 1,466
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.
-
2013-04-01, 19:49 #127Junior 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
-
2013-05-22, 06:44 #128Junior 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?
-
2013-05-22, 07:29 #129Senior Member
- Join Date
- Jul 2005
- Posts
- 251
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).
Sorry no idea about iTunes as I don't have it.
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.
-
2013-05-22, 07:39 #130Junior Member
- Join Date
- Apr 2013
- Posts
- 2
Amazing !!!
will buy it right now !!!
thank you very much


Reply With Quote
