meq123 wrote:
> There are a least a few ways to skin this cat, but this is what I do...
>
> 1) Copy the sbpd command config file to the home directory:
>
> >
Code:
--------------------
> > cd ~
> cp /usr/local/share/sbpd/sbpd_commands.cfg .
--------------------
> >
>
> 2) Append the line for your command to the bottom of the file
> (escaping the quote chars), and then do a backup:
>
> >
Code:
--------------------
> > echo "FAV1 = [\"favorites\",\"playlist\", "\play item_id:1.1\"]"
>> sbpd_commands.cfg
> pcb bu
--------------------
> >
>
> 3) Add the location of the updated config file to the sbpd command on
> the tweaks page
>
> >
Code:
--------------------
> > sbpd -d -f /home/tc/sbpd_commands.cfg -<rest of your button
command string>-
>
--------------------
> >
>
> Have fun!
Thank you for your quick answer.
Somehow it is not working. This is what I get (verbose):
Code:
--------------------
1561062707.3013 6 GPIO.c,102: Short PRESS: 118
1561062707.3013 6 control.c,107: Button CB set for button #:0, gpio pin 25
1561062707.3145 6 control.c,218: Button pressed: Pin: 25, Press Type:Short
1561062707.3147 6 servercomm.c,74: Send Command:0,
Fragment:[\"favorites\",\"playlist\", "\play item_id:1.1\"]
1561062712.3167 6 servercomm.c,134: Curl Error: (28)
1561062712.3167 6 servercomm.c,136: Operation timed out after 5001
milliseconds with 0 bytes received
--------------------
I also tried without \ like this:
Code:
--------------------
FAV1=["favorites","playlist", "play item_id:1.1"]
--------------------
Code:
--------------------
1561063290.4186 6 GPIO.c,102: Short PRESS: 306
1561063290.4186 6 control.c,107: Button CB set for button #:0, gpio pin 25
1561063290.4822 6 control.c,218: Button pressed: Pin: 25, Press Type:Short
1561063290.4823 6 servercomm.c,74: Send Command:0,
Fragment:["favorites","playlist", "play item_id:1.1"]
1561063290.4926 6 servercomm.c,134: Curl Error: (52)
1561063290.4926 6 servercomm.c,136: Empty reply from server
--------------------
I have added 2 radio stations in favorites.opml and I can see them in
LMS favorites (gui). Should the first radio stream be item_id:1.1 and
the second: item_id:1.2
Thank you!
------------------------------------------------------------------------
Jursi's Profile: http://forums.slimdevices.com/member.php?userid=69100
View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy