Greg Erskine wrote: 
> Hi hdhwx42,
> 
> Steen has answered your question. :D
> 
> If your standalone script is for auto start, :confused: read on....
> 
> If you have a look at /home/tc/www/cgi-bin/do_rebootstuff.sh you will
> see we call "pcp_auto_start_lms" routine just after
> "/usr/local/etc/init.d/squeezelite start". I suspect the issue that some
> people are having is a timing issue between starting squeezelite and
> sending the auto start command to LMS. The issues with uppercase MAC
> addresses could also have prevented it working for some people. Anyway,
> I have been playing with this function today, changed telnet to netcat,
> added a check that piCorePlayer has connected to LMS before sending the
> auto start command and added error logging. The end result is... it
> STILL works perfect for me with no errors, timing or otherwise detected.
> I'll test it over a wireless connection tomorrow, a slower network may
> show timing issues.
> 
> I might talk the Steen about adding a couple of hooks at the end of
> do_rebootstuff.sh so people can add there own startup commands or
> routines more easily.
> 
> regards
> Greg

Hello Steen and Greg,

here my 5cent.
Attached you will find the modified "squeezelite" script and a library
which is called within.

I'm not really satified about the result but I assume you can work with
it and integrate some parts in the next version of picoreplayer.

It is possible to call following functions:
Usage: ./squeezelite [start|stop|restart|force|status]
Usage: ./squeezelite [play|stop_playing|set_volume] <volume i.e. 14>
Usage: ./squeezelite [get_fav_list] -- return favorite list
Usage: ./squeezelite [play_fav] <name i.e. *'*hitradio.rt1 94.0 (Top 40
Hits)*'*>

With this it is possible to start and stop playing / list all your
favorites / play one dedicated radio station.

@Steen
Maybe it is possible to change your WEB frontend and add a pre-setting
for "play" and "play_fav".
Then the user can decide -
a) Either the player continues the play-list again where it run before
shutdown ("play")
b) Or the player starts always with one preferred radiostation
("play_fav").


Best regards


+-------------------------------------------------------------------+
|Filename: squeezelite.1.18.txt                                     |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=17105|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
hdhwx42's Profile: http://forums.slimdevices.com/member.php?userid=63810
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to