Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-29 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-29 Thread Paul Webster
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-29 Thread chill
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']

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-29 Thread Paul Webster
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:

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-29 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-27 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-27 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-27 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-25 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-25 Thread Michael Herger
[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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-25 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread kidstypike
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread chill
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).

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread chill
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:

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread ralphy
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:

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread ralphy
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'

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-24 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-23 Thread Michael Herger
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-23 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-23 Thread chill
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

Re: [SlimDevices: SqueezeCenter] Looking for information about Presets

2018-05-23 Thread Michael Herger
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