Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks guys - I'll give netcat a go. mherger wrote: > > > There is a curl extension, but it's failing to install. Maybe worth > asking in the pCP thread what's wrong with it. > Ah good - not just me then. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
As Michael says ... looks like the Busybox version of whet is too limited ... because it does not appear to have the --post-data option. Paul Webster http://dabdig.blogspot.com Author Radio France (FIP etc) plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Paul Webster wrote: > Is there a wget ? There is. Code: tc@piCorePlayer:~$ wget BusyBox v1.27.2 (2017-10-31 19:09:48 UTC) multi-call binary. Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE] [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] [-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL... Retrieve files via HTTP or FTP --spiderOnly check URL existence: $? is 0 if exists -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -S Show server response -T SEC Network read timeout is SEC seconds -O FILE Save to FILE ('-' for stdout) -U STR Use STR for User-Agent header -Y on/off Use proxy So would that allow me to ask for the name of the currently playing playlist/stream and then issue the jivefavorites command to save it to a preset? mherger wrote: > > > jivefavorites set_preset key:[0-9] favorites_url:http://... > favorites_title:station%20title favorites_type:audio > chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Is there a wget ? Paul Webster http://dabdig.blogspot.com Author Radio France (FIP etc) plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
mherger wrote: > > Don't use port 9090 (though you could do this using netcat). Use http > POST requests on port 9000 (or whatever your web UI's port). Eg. using > "curl", or your script language's package for this purpose: > One step forward and two steps back. Curl doesn't seem to exist in Busybox (the all-in-one shell in TinyCore linux). Code: tc@piCorePlayer:~$ curl -sh: curl: not found So is netcat the best option? If so, am I better trying to send the original command to 9090, or send it to jsonrpc.js on 9000? I can see a dark future in linux command line hell ahead of me chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks Michael - two good leads for this beginner. I quite like the idea of a long button press to set a preset and a short press to play that preset (as on the Boom), but I'm also warming to the idea of just having the short button press to access a favorite, which has the advantage that the LMS web interface allows me to manage those favorites. Now if there was a similar interface to manage player-specific 'presets' chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
I've had a quick look at how I might use that 'jivefavorites' command to set a preset, and have fallen at the first hurdle - if my aim is put it into a script that is called by a button press, then I can't see how I would point that script to port 9090. But I'll figure that out - that's not why I'm back. Don't use port 9090 (though you could do this using netcat). Use http POST requests on port 9000 (or whatever your web UI's port). Eg. using "curl", or your script language's package for this purpose: curl -X POST -d '{"id":0,"params":["",["restartserver"]],"method":"slim.request"}' http://localhost:9000/jsonrpc.js I'm back to ask if there is a URL for a (conventional) 'favorite' - something like 'file:favorites_1.m3u' for instance. I'd No, there's no such thing for favorites. But if you look at the cli documentation you'll find a "favorites playlist play item_id:1.2.3" command, which would allow you to play an item from your favorites. http://htmlpreview.github.io/?https://raw.githubusercontent.com/Logitech/slimserver/public/7.9/HTML/EN/html/docs/cli-api.html -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
I've had a quick look at how I might use that 'jivefavorites' command to set a preset, and have fallen at the first hurdle - if my aim is put it into a script that is called by a button press, then I can't see how I would point that script to port 9090. But I'll figure that out - that's not why I'm back. I'm back to ask if there is a URL for a (conventional) 'favorite' - something like 'file:favorites_1.m3u' for instance. I'd be happy if I could permanently assign preset #1 to the first item in my favorites list for example. I appreciate that favorites are more 'dynamic', in that the list order can change, but there is at least an interface in LMS to allow me to edit/reorder/manage these system-wide favorites. So knowing that my hardware buttons (e.g. 1 to 4) actually link to the corresponding top four favorites would work well I think. I had a quick look at how favorites are handled (favorites.opml) so I suspect this is a dead-end unless there's some kind of routine that would translate a URL to point to something in that OMPL file perhaps. Just thought I'd ask. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks Michael I'll certainly look into that. I think getting that to work will be a bit more of a project for me though - lots to learn. In the meantime I'm going to add some presets buttons to my button panel so that I can build them into my amplifier project. As a minimum I know that I can edit server.prefs to create presets, but hopefully I'll also be able to add a method of storing presets from a long press of those buttons. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
[18-05-25 07:29:21.3743] Slim::Buttons::Common::__ANON__ (812) Error: No valid url found, not adding favorite! [18-05-25 07:29:21.3751] Slim::Buttons::Common::__ANON__ (817) Backtrace: That error line (which is in red in the log file) looks to be the key. I got the same logging block when I attempted to store either a local library track or a Spotty track. So maybe it's not able to extract the URL from the currently playing track, and only works on tracks that are navigated to as in the Boom? Yeah, seems to be the case: that code indeed relies on information being available from the display code used for the old devices. I still believe the jivefavorites is what you need: jivefavorites set_preset key:[0-9] favorites_url:http://... favorites_title:station%20title favorites_type:audio Optionally you could pass a playlist_index value, referring to the item in your playlist you'd like to use as a preset. You'd have to use status or something to figure out what the values of the currently playing track are. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
mherger wrote: > Enable debug logging for player.ir, control.command and see whether you > > can get some more information in server.log. > -- > > Michael Thanks Michael. I set up a couple of buttons - one using ["button","preset_1.hold"] to store the preset and one using ["button","preset_1.single"] to play it. In the console output from sbpd I get these messages, which confirm that the commands are being issued in response to the button presses: Code: 1527229761.3204 6 GPIO.c,97: Long PRESS: 2685 1527229761.3205 6 control.c,106: Button CB set for button #:0, gpio pin 19 1527229761.3671 6 control.c,217: Button pressed: Pin: 19, Press Type:Long 1527229761.3672 6 servercomm.c,74: Send Command:0, Fragment:["button","preset_1.hold"] 1527229763.9637 6 GPIO.c,102: Short PRESS: 232 1527229763.9638 6 control.c,106: Button CB set for button #:0, gpio pin 19 1527229763.9797 6 control.c,217: Button pressed: Pin: 19, Press Type:Short 1527229763.9798 6 servercomm.c,74: Send Command:0, Fragment:["button","preset_1.single"] In server.log I get: Code: [18-05-25 07:22:56.8155] main::init (599) Server Jive init... [18-05-25 07:22:56.9259] main::init (608) Server checkDataSource... [18-05-25 07:22:56.9271] main::init (618) Library Browser init... [18-05-25 07:22:56.9320] main::init (622) Server persist playlists... [18-05-25 07:22:56.9420] main::init (658) Server HTTP enable... [18-05-25 07:22:56.9443] main::init (666) Server done init... [18-05-25 07:29:21.3743] Slim::Buttons::Common::__ANON__ (812) Error: No valid url found, not adding favorite! [18-05-25 07:29:21.3751] Slim::Buttons::Common::__ANON__ (817) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/local/slimserver/Slim/Buttons/Common.pm line 817) frame 1: Slim::Buttons::Common::__ANON__ (/usr/local/slimserver/Slim/Hardware/IR.pm line 1104) frame 2: Slim::Hardware::IR::executeButton (/usr/local/slimserver/Slim/Control/Commands.pm line 291) frame 3: Slim::Control::Commands::buttonCommand (/usr/local/slimserver/Slim/Control/Request.pm line 1883) frame 4: (eval) (/usr/local/slimserver/Slim/Control/Request.pm line 1883) frame 5: Slim::Control::Request::execute (/usr/local/slimserver/Slim/Web/JSONRPC.pm line 420) frame 6: Slim::Web::JSONRPC::requestMethod (/usr/local/slimserver/Slim/Web/JSONRPC.pm line 224) frame 7: (eval) (/usr/local/slimserver/Slim/Web/JSONRPC.pm line 224) frame 8: Slim::Web::JSONRPC::handleURI (/usr/local/slimserver/Slim/Web/HTTP.pm line 465) frame 9: Slim::Web::HTTP::processHTTP (/usr/local/slimserver/Slim/Networking/IO/Select.pm line 123) frame 10: (eval) (/usr/local/slimserver/Slim/Networking/IO/Select.pm line 119) frame 11: Slim::Networking::IO::Select::__ANON__ (/usr/local/slimserver/Slim/Networking/IO/Select.pm line 168) frame 12: (eval) (/usr/local/slimserver/Slim/Networking/IO/Select.pm line 168) frame 13: Slim::Networking::IO::Select::loop (/usr/local/slimserver/slimserver.pl line 727) frame 14: main::idle (/usr/local/slimserver/slimserver.pl line 677) frame 15: main::main (/usr/local/slimserver/slimserver.pl line 1213) That error line (which is in red in the log file) looks to be the key. I got the same logging block when I attempted to store either a local library track or a Spotty track. So maybe it's not able to extract the URL from the currently playing track, and only works on tracks that are navigated to as in the Boom? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Enable debug logging for player.ir, control.command and see whether you can get some more information in server.log. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
chill wrote: > The preset_5.hold button is an IR command I believe, so I tried it on a > Boom using the remote control. Pressing and holding the number 5 key on > the remote brings up the message "Preset #5 (hold to save)", but no > matter how long I hold it, the current track doesn't get inserted as a > preset. If I hold it long enough that message times out and the key is > evidently ignored. If I release the key before that timeout, then the > existing preset #5 starts to play. > > So I think there's more to using the remote button mappings - perhaps > the physical preset buttons on the Boom do something more than their > apparent counterparts in the remote commands. Works fine for me, I need to hold for about 5 seconds. You do know that you can't save the currently playing track from the "Now Playing" screen? You need to have the track title on the screen and press and hold there. *Study/Server - LMS 7.9.1 -* Pi3B+/pCP 3.5.0/pi screen/HiFiBerry DAC+/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs). *Lounge* - Pi2/pCP 3.5.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Dining Room* - Pi3B/pCP 3.5.0 > HiFiBerry AMP+/retro radio *Garage* - Pi3B/Pi screen/HiFiBerry DAC+/pCP 3.5.0 > Edifier R980T *In car* - RPi3B/pCP in AP mode > HiFiBerry DAC+ > car's audio (files on a 2TB USB drive) *Spares* - 1xTouch, 1xSB3, 1xRadio, 1xBoom kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
The preset_5.hold button is an IR command I believe, so I tried it on a Boom using the remote control. Pressing and holding the number 5 key on the remote brings up the message "Preset #5 (hold to save)", but no matter how long I hold it, the current track doesn't get inserted as a preset. If I hold it long enough that message times out and the key is evidently ignored. If I release the key before that timeout, then the existing preset #5 starts to play. So I think there's more to using the remote button mappings - perhaps the physical preset buttons on the Boom do something more than their apparent counterparts in the remote commands. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Hmm - preset_5.hold doesn't seem to do anything. I can see the command being triggered by the button press (in the console output of sbpd), but whatever it's doing, it's not updating the list of presets (or the list of favourites). chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks both - that 'preset_5.hold' option looks promising, if it that's what is called when function button 5 is held. It would be nice to avoid having to get too deeply into CLI and Jive scripting :) chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Try SET1=["button","preset_5.hold"] to save preset 5 from sbpd. Also, here's the server request that jive sends to save preset 5 while playing a track. Code: DEBUG net.comet - Comet.lua:361 Sending pending request(s): { --[[table: 0xb659ea58]] { --[[table: 0xb659eae8]] channel = "/slim/request", data = { --[[table: 0xb659eb48]] request = { --[[table: 0xb659eaa8]] "00:1b:21:31:77:4f", { --[[table: 0xb659df78]] "jivefavorites", "set_preset", "playlist_index:0", "key:5", "useContextMenu:1", }, }, response = "/0552ffb5/slim/request", }, id = 25, }, } Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks - so is that the 'jivefavorite' command that Michael mentioned? Yes. So I'm assuming that Jive knows which function key was pressed to call that command, but it's not clear to me how the preset information ends up in the right line of the presets section in server.prefs. If that's all handled by other code surrounding that call to jivefavorite, perhaps it would be simpler for me to try to simulate a function button press when one of my hardware buttons is pressed. Jive would pick up the commands from the SlimBrowse/SlimMenu data sent by the server. http://wiki.slimdevices.com/index.php/SBS_SqueezePlay_interface It doesn't know by itself, but LMS is telling it what to do with those buttons. Is that feasible do you think? Is there a CLI command or IR command to simulate a function button press? There's the aptly named 'button' command. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Is there anything in the syntax of the 'jivefavorite add' command tha > links that preset to a position in the list? When I do a long press on button 4 on the Boom, the preset gets inserted into the 4th row of the list of presets. How does the 'jivefavorite add' command know which row to place the new preset in? Does the surrounding code handle that part? Hmm... that code is indeed rather confusing... it even has quite a few question marks around the comments in there: https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Control/Jive.pm#L2614 that's the parameters read from the command line And here's how they are stored: https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Control/Jive.pm#L2638 See the mapping of title to text in there. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks - so is that the 'jivefavorite' command that Michael mentioned? So I'm assuming that Jive knows which function key was pressed to call that command, but it's not clear to me how the preset information ends up in the right line of the presets section in server.prefs. If that's all handled by other code surrounding that call to jivefavorite, perhaps it would be simpler for me to try to simulate a function button press when one of my hardware buttons is pressed. Is that feasible do you think? Is there a CLI command or IR command to simulate a function button press? If not, perhaps I could script a function button press somehow - I'm a complete beginner with LMS CLI, and scripting in general in fact, so any pointers to get me going would be appreciated. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Jive supports holding the Function keys F1 - F6 to set the corresponding preset. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
mherger wrote: > > check out the "status" query. > Thanks you, will do. Is there anything in the syntax of the 'jivefavorite add' command that links that preset to a position in the list? When I do a long press on button 4 on the Boom, the preset gets inserted into the 4th row of the list of presets. How does the 'jivefavorite add' command know which row to place the new preset in? Does the surrounding code handle that part? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Check out server.log. I think this was a typo - I found a presets section for each player in /mnt/mmcblk0p2/tce/slimserver/prefs/server.prefs Oops... of course you're right. I have to type "please provide your server.log" so often, it's become second nature :-) The preset I copied is a radio station. - URL: http://opml.radiotime.com/Tune.ashx?id=s45545=aac,ogg,mp3 text: 106.6 | Smooth East Midlands (Easy Listening) type: audio So in addition to the 'title:', 'url:', 'icon:' and 'type:' fields in your CLI syntax there also seems to be a 'text:' field. I'm guessing I guess "text" would be set to whatever you pass as the title. Any tips for how to get the URL of the currently playing playlist item via the command line in a bash script? check out the "status" query. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
mherger wrote: > > > Check out server.log. I think this was a typo - I found a presets section for each player in /mnt/mmcblk0p2/tce/slimserver/prefs/server.prefs I took a copy, then stopped LMS and edited server.prefs to copy a preset from one of my Booms to the pCP squeezelite player, did a backup and restarted LMS and it worked like a charm - I now have a preset that starts on the long press of one of my hardware buttons. The preset I copied is a radio station. - URL: http://opml.radiotime.com/Tune.ashx?id=s45545=aac,ogg,mp3 text: 106.6 | Smooth East Midlands (Easy Listening) type: audio So in addition to the 'title:', 'url:', 'icon:' and 'type:' fields in your CLI syntax there also seems to be a 'text:' field. I'm guessing that for a headless system the only ones that are needed are the url: and probably the type: I'll have a play. Any tips for how to get the URL of the currently playing playlist item via the command line in a bash script? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
Thanks Michael, I'll have a play with both of those. I don't think the CLI method will fit conveniently into a standard sbpd command, but since sbpd allows for calling a separate script I think that could work. My scripting skills are non-existent at the moment, so figuring out how to get the URL and icon from LMS and constructing the corresponding command line could be a challenge. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Looking for information about Presets
1) a file on the server that I can edit? Where would that be in a pCP setup? Check out server.log. There's a "presets" entry for every player. Don't edit the file while LMS is running. Make a backup before you modify it. 3) a CLI command to achieve this, which could be programmed onto an Sbpd button? There is a CLI command which is not documented. Don't know why. Might be: 00:04:20:... jivefavorite add title:MyRadio url:http://myradio.com/listen icon:http://myradio.com/icon.png type:audio Haven't tested this, but that's what I understand from the code. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] Looking for information about Presets
I'm running pCP 3.5.0 on a Raspberry Pi 3B+. I also have some push buttons that are configured using the SqueezeButtonPi daemon. It all works very well. I'd now like to investigate whether Presets can be used with this setup. I can configure a button to play a given preset (e.g. PRE1=["button","preset_1.single"]), but since I don't have any presets configured for this player, I get an error message on the attached Joggler screen that says "Preset #1 not defined." I posted a similar question in the Sbpd thread, but having now experimented for quite a while with various command strings (with no success) I think it's more appropriate to ask in the LMS forum. What I'd like to know is how to configure presets on Squeezelite. I appreciate that presets are supposed to be associated with preset buttons, e.g. on a Boom, but now that there's an easy way to add hardware buttons to a pCP setup it seems like the preset concept could apply. On my Boom, I navigate to an an item, such as a track, then do a long press on one of the preset buttons, and that stores the preset. I think that preset is specific to that Boom, and isn't available to other players. So what command does the Boom trigger when I do a long press on a preset button? I saw some commands in the IR default mapping file, but since the procedure on the Boom uses a hardware button rather than an IR command, I don't think anything in that IR mapping file is what I'm looking for - certainly nothing that I tried seems to work. So to configure a preset on Squeezelite, is there perhaps: 1) a file on the server that I can edit? Where would that be in a pCP setup? 2) a way to use the attached Joggler to achieve this? 3) a CLI command to achieve this, which could be programmed onto an Sbpd button? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=109080 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter