Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-03-04 Thread Roland0

mkkyah wrote: 
> 
> There is one thing I want to ask, is there a chance that the script
> reacts faster? With some stations the announcement starts before the
> mute, even with lower sleep values. I think the script is checking the
> track 3 times before react, is that always necessary?
The script checks once per player, since any of them may need to be
muted.
Since the script polls the server in intervals, sends queries / requests
to the server, and may have to wait for a reply, a certain latency is
unavoidable.
A LMS plugin would be faster, since it could subscribe to server events
(e.g. track change), and directly call server functions (e.g. mute
player) without network overhead.



SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-03-02 Thread mkkyah

Dear Roland,
I was using the script for a while and it's working very well on my
system with a few radios. Thanks again.
There is one thing I want to ask, is there a chance that the script
reacts faster? With some stations the announcement starts before the
mute, even with lower sleep values. I think the script is checking the
track 3 times before react, is that always necessary?



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-15 Thread mkkyah

Roland0 wrote: 
> Well, maybe your setup doesn't need to have the volume restored. Try
> changing
> > 
Code:

  >   > echo "$PLID mixer volume $VOL"|nc6 --send-only $LMS 9090 &>/dev/null

> > 
> to
> > 
Code:

  >   > #echo "$PLID mixer volume $VOL"|nc6 --send-only $LMS 9090 &>/dev/null

> > 
> 

Dear Roland,
All your corrections worked. Thanks again for your help and I'm sorry
for reporting back late for this.
I have tried the script on 2 setups. 1 Odroid U3 and 1 Pi3, both with
Max2Play installations.
Odroid is working with LMS=localhost, pi3 is working with LMS=network
ip
Both of them needed the last change you have mentioned for unmute.


BTW. For the ABC Lounge case, it's not worth to use the script. I have
even changed sleep value to 0,2, but announcement  plays long enough
before script kicks mute. I will try with different radios and report
back.



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-06 Thread Roland0

mkkyah wrote: 
> I have tested it with Volume set to 72 and it couldn't unmute again.
> Mute and TRIGGER match was very successful. Debug is like this:
> 
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [ABC%20Lounge%20Radio%20-%20Sweep%2046 ] (old:
> [Peter%20Pearson%20-%20Smooth%20talking ] ): changed
> match trigger -> mute
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [ABC%20Lounge%20Radio%20-%20Sweep%2046 ] (old:
> [ABC%20Lounge%20Radio%20-%20Sweep%2046 ] ): unchanged
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [John%20Pizzarelli%20-%20Last%20Dance ] (old:
> [ABC%20Lounge%20Radio%20-%20Sweep%2046 ] ): changed
> mute on -> unmute (vol=-72)

Well, maybe your setup doesn't need to have the volume restored. Try
changing

Code:

echo "$PLID mixer volume $VOL"|nc6 --send-only $LMS 9090 &>/dev/null


to

Code:

#echo "$PLID mixer volume $VOL"|nc6 --send-only $LMS 9090 &>/dev/null




if this doesn't work, undo and try

Code:

echo "$PLID mixer volume $((VOL*-1))"|nc6 --send-only $LMS 9090 &>/dev/null




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-06 Thread mkkyah

Roland0 wrote: 
> So what is the volume of your player before, while and after muting?

I have tested it with Volume set to 72 and it couldn't unmute again.
Mute and TRIGGER match was very successful. Debug is like this:

P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[ABC%20Lounge%20Radio%20-%20Sweep%2046 ] (old:
[Peter%20Pearson%20-%20Smooth%20talking ] ): changed
match trigger -> mute
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[ABC%20Lounge%20Radio%20-%20Sweep%2046 ] (old:
[ABC%20Lounge%20Radio%20-%20Sweep%2046 ] ): unchanged
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[John%20Pizzarelli%20-%20Last%20Dance ] (old:
[ABC%20Lounge%20Radio%20-%20Sweep%2046 ] ): changed
mute on -> unmute (vol=-72)



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-05 Thread Roland0

mkkyah wrote: 
> 
> But "unmute" problem exist. Unmute volume is negative. I don't know why
> it worked a few times normally.
> 

Roland0 wrote: 
> 
> Check the volume of your player before, while and after muting (for some
> reason, when testing with squeezelite, it wasn't enough to unmute after
> muting, the former volume level had to be restored as well. Maybe that's
> not the case with your player)
> 
So what is the volume of your player before, while and after muting?



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-04 Thread mkkyah

Roland0 wrote: 
> In the script, try changing 
> > 
Code:

  >   > 
  > if [[ $CSONG == "$TRIGGER" ]]; then
  > 

> > 
> to
> > 
Code:

  >   > 
  > if [[ $CSONG == $TRIGGER ]]; then
  > 

> > 
> 
> to check your trigger, use this in a shell:
> > 
Code:

  >   > 
  > shopt -s extglob
  > [[ "ABC%20Lounge%20Radio%20-%20Sweep%2031" == @(ABC%20Lounge*) ]] && echo 
match
  > 

> > 

Thanks, That solved the TRIGGER problem. I will add multiple patterns
and report back.
But "unmute" problem exist. Unmute volume is negative. I don't know why
it worked a few times normally.
I have updated all LMS and Squeezelite to latest versions.



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-04 Thread Roland0

mkkyah wrote: 
> I have tried several versions of your pattern but shouldn't
> TRIGGER="@(ABC%20Lounge*) work?

In the script, try changing 

Code:


  if [[ $CSONG == "$TRIGGER" ]]; then
  


to

Code:


  if [[ $CSONG == $TRIGGER ]]; then
  



to check your trigger, use this in a shell:

Code:


  shopt -s extglob
  [[ "ABC%20Lounge%20Radio%20-%20Sweep%2031" == @(ABC%20Lounge*) ]] && echo 
match
  




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-04 Thread mkkyah

Roland0 wrote: 
> And what is the song name (as reported by the script) which isn't
> matched?
> 

this is the announcement and it's ending with different numbers all the
time, I have tried several versions of your pattern but shouldn't
TRIGGER="@(ABC%20Lounge*) work?

P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[ABC%20Lounge%20Radio%20-%20Sweep%2031 ] (old:
[ABC%20Lounge%20Radio%20-%20Sweep%2031 ] ): unchanged



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread Roland0

mkkyah wrote: 
> 
> I'm trying to use a pattern for ABC Lounge Jazz Radio
> TRIGGER="@(*Sweep*ABC%20Lounge*)"
> 
And what is the song name (as reported by the script) which isn't
matched?

mkkyah wrote: 
> Mute is working all the time, but unmute is problematic again. Output
> seems ok to me:
> 
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [Martine%20Girault%20-%20The%20Revival%20(Radio%20Mix) ] (old:
> [Hiatus%20Kaiyote%20-%20The%20World%20It%20Softly%20Lulls ] ): changed
> mute on -> unmute (vol=-54)
This doesn't look right: vol=-54 (shouldn't be negative)
Check the volume of your player before, while and after muting (for some
reason, when testing with squeezelite, it wasn't enough to unmute after
muting, the former volume level had to be restored as well. Maybe that's
not the case with your player)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread mkkyah

mkkyah wrote: 
> I'm trying to use a pattern for ABC Lounge Jazz Radio
> TRIGGER="@(*Sweep*ABC%20Lounge*)"

Mute is working all the time, but unmute is problematic again. Output
seems ok to me:

P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Martine%20Girault%20-%20The%20Revival%20(Radio%20Mix) ] (old:
[Hiatus%20Kaiyote%20-%20The%20World%20It%20Softly%20Lulls ] ): changed
mute on -> unmute (vol=-54)
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread mkkyah

mkkyah wrote: 
> Sorry I forgot to paste the output.
> -- This time I did test it with an actual radio station, not Deezer. The
> output difference is that after unmute no volume level is printed, but
> audio came back.
> -- I couldn't make the wildcard part work.
> 
> [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old: [] ): changed
> match trigger -> mute
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [ ] (old:
> [Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): changed
> mute on -> unmute (vol=)
> P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
> P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [Norah%20Jones%20-%20Carry%20On
> ] (old: [ ] ): changed

I'm trying to use a pattern for ABC Lounge Jazz Radio
TRIGGER="@(*Sweep*ABC%20Lounge*)"



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread mkkyah

Roland0 wrote: 
> What's the exact output?
> 
> 
> 
> After
> #!/bin/bash
> add
> > 
Code:

  >   > shopt -s extglob

> > 
> then you can use pattern lists like this:
> > 
Code:

  >   > TRIGGER="@(*pattern1*|*pattern2)"

> > 

Sorry I forgot to paste the output.
-- This time I did test it with an actual radio station, not Deezer. The
output difference is that after unmute no volume level is printed, but
audio came back.
-- I couldn't make the wildcard part work.

[99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old: [] ): changed
match trigger -> mute
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [ ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): changed
mute on -> unmute (vol=)
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [Norah%20Jones%20-%20Carry%20On
] (old: [ ] ): changed



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread Roland0

mkkyah wrote: 
> 
> -- I read unmute command when TRIGGER changes, but *LMS stays on mute*.
> -- This is not important for real use purpose, but skipping on the test
> track causes unmute.
> 
What's the exact output?

> 
> Can we use wildcards like *,? and can we use a TRIGGER list seperated
> with comas?

After
#!/bin/bash
add

Code:

shopt -s extglob


then you can use pattern lists like this:

Code:

TRIGGER="@(*pattern1*|*pattern2)"




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-03 Thread mkkyah

Roland0 wrote: 
> Seems not. Check with > 
Code:

  >   > uname -n

> >  in the shell, or use the IP address, or use localhost if the script
> is running on the server itself.
> 
> 
> You should always use an unprivileged user for stuff like this.

Ok,
localhost and other names did not work, but server ip worked.
Now debug is working and I could chose correct TRIGGER name to do the
job.
-- Mute is working when the TRIGGER matcheskipping 
-- I read unmute command when TRIGGER changes, but *LMS stays on mute*.
-- This is not important for real use purpose, but skipping on the test
track causes unmute.

I think my LMS name issues can be related to Max2Play installation, but
using ip is easier, no problem.

Can we use wildcards like *,? and can we use a TRIGGER list seperated
with comas?



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-02 Thread Roland0

mkkyah wrote: 
> 
> nc6: forward host lookup failed for remote endpoint OdroidLMS: Name or
> service not known
> Am I using correct "LMS="? 
> 
Seems not. Check with 
Code:

uname -n

 in the shell, or use the IP address, or use localhost if the script is
running on the server itself.

> 
> BTW I'm running all this script as root on Odroid.
You should always use an unprivileged user for stuff like this.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
| ' update perl modules'
(http://forums.slimdevices.com/showthread.php?107040-Howto-update-perl-modules-bundled-with-LMS)

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-02 Thread mkkyah

Roland0 wrote: 
> Don't use  -x, execute the script normally
> if DEBUG=1 you should see some output just by running the script,
> provided the connection to your LMS server works, check with 
> > 
Code:

  >   > echo "players 0 99"|nc6 -q1 OdroidLMS 9090

> > 
> 
> If you don't, change the script as follows:
> > 
Code:

  >   > 
  > for i in "${psAR[@]}"; do
  > # add this:
  > [ $DEBUG ] && echo "LINE: $i
  > 

> > 
> which should result in a lot of output
Roland, thanks for your help.

I get no debug info when I run the script
But   echo "players 0 99"|nc6 -q1 OdroidLMS 9090  returns:

nc6: forward host lookup failed for remote endpoint OdroidLMS: Name or
service not known

Am I using correct "LMS="? OdroidLMS is taken from Server
Settings/nformation/Logitech Media Server Status/Hostname
BTW I'm running all this script as root on Odroid.



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-01 Thread Roland0

mkkyah wrote: 
> This is what I get when using bash -x:
> 

Don't use  -x, execute the script normally
if DEBUG=1 you should see some output just by running the script,
provided the connection to your LMS server works, check with 

Code:

echo "players 0 99"|nc6 -q1 OdroidLMS 9090



If you don't, change the script as follows:

Code:


  for i in "${psAR[@]}"; do
  # add this:
  [ $DEBUG ] && echo "LINE: $i
  


which should result in a lot of output



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
| ' update perl modules'
(http://forums.slimdevices.com/showthread.php?107040-Howto-update-perl-modules-bundled-with-LMS)

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-01 Thread mkkyah

Roland0 wrote: 
> Change the line
> > 
Code:

  >   > 
  > DEBUG=
  > 

> > 
> to
> > 
Code:

  >   > 
  > DEBUG=1
  > 

> > 
> and check the output.
> Make sure your trigger matches exactly (e.g. incl. the encoded spaces
> (%20))

Thanks Roland, but where should I get the output?
This is what I get when using bash -x:

S:/bin# bash -x ./NoAdsLms
+ which nc6
+ LMS=OdroidLMS
+ TRIGGER=Subject
+ DEBUG=1
+ declare -A plStat
+ declare -A plMute
+ true
+ psAR=(`echo "players 0 99"|nc6 -q1 $LMS 9090  2>/dev/null`)
++ echo 'players 0 99'
++ nc6 -q1 OdroidLMS 9090
+ sleep 2
+ true
+ psAR=(`echo "players 0 99"|nc6 -q1 $LMS 9090  2>/dev/null`)
++ echo 'players 0 99'
++ nc6 -q1 OdroidLMS 9090
+ sleep 2
+ true
+ psAR=(`echo "players 0 99"|nc6 -q1 $LMS 9090  2>/dev/null`)
++ echo 'players 0 99'
++ nc6 -q1 OdroidLMS 9090
+ sleep 2



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-01 Thread Roland0

mkkyah wrote: 
> 
> I'm trying to use the script, but no success.. 
> When I use test track with the TRIGGER name nothing happens..

Change the line

Code:


  DEBUG=
  


to

Code:


  DEBUG=1
  


and check the output.
Make sure your trigger matches exactly (e.g. incl. the encoded spaces
(%20))



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
| ' update perl modules'
(http://forums.slimdevices.com/showthread.php?107040-Howto-update-perl-modules-bundled-with-LMS)

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2018-01-01 Thread mkkyah

Roland0 wrote: 
> fyi, there's a shell script for this posted 'here'
> (http://forums.slimdevices.com/showthread.php?107846-Werbung-bei-Internet-Radio-ausblenden=892324=1#post892324)

Hi Roland,
I'm trying to use the script, but no success.. Here is what I did so
far:

-- I did install netcat6 and "which nc6" returns /bin/nc6
-- I have created NoAdsLms.sh file with the code in /bin.
-- I did use "Hostname" from  Server Settings/Information as LMS, and
track name as TRIGGER.
-- I did "chmod +x /bin/NoAdsLms.sh"
-- and run ./NoAdsLms.sh

When I use test track with the TRIGGER name nothing happens.
My test device is Odroid U3 with Max2Play installation.



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2017-09-05 Thread mkkyah

Roland0 wrote: 
> fyi, there's a shell script for this posted 'here'
> (http://forums.slimdevices.com/showthread.php?107846-Werbung-bei-Internet-Radio-ausblenden=892324=1#post892324)

Yes, Thank you for that. I've been on that thread.
Although I don't know how to use it, I believe I will search the forum
and try; I'll be glad if someone show me where to look.

I still think a general plugin for this purpose would be great and
simple.

Thanks again:)



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2017-08-27 Thread Roland0

fyi, there's a shell script for this posted 'here'
(http://forums.slimdevices.com/showthread.php?107846-Werbung-bei-Internet-Radio-ausblenden=892324=1#post892324)



SW: extGUI4LMS - new web UI: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (https://www.nexus0.net/pub/sw/extgui4lms/) | 'LMSlib2go'
(http://forums.slimdevices.com/showthread.php?107704-Announce-LMSlib2go-library-information-on-mobile-devices)
| 'music visualizer'
(http://forums.slimdevices.com/showthread.php?103073-Announce-music-visualizer-for-squeezelite)
for squeezelite
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus support'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth with ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
| ' update bundled perl modules'
(http://forums.slimdevices.com/showthread.php?107040-Howto-update-perl-modules-bundled-with-LMS)

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2017-08-20 Thread edwin2006





*SqueezeBoxes:* 2x SB2 (Living room and study), 1x Radio (Kitchen), 1x
Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden)
1x OSMC + Squeezelite (Movie room), 1x Touch (Bedroom)
*Server:* LMS on Pi3 7.9.1. on PcP 3.21
*Network:* AVM Fritzbox, D-Link Smart Switch 24p, 3x Ubiquity

edwin2006's Profile: http://forums.slimdevices.com/member.php?userid=66926
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] [Plugin Request/Offer] Mute or Skip tracks on a Blacklist

2016-10-08 Thread mkkyah

Hi,
As I still have no skills to create a new plugin, I'm just suggesting.

Can we have a simple plugin which has a blacklist in settings for the
artist name or/and track name. Than if one of the names on the list
matched, LMS can mute or skip the track.
This can be useful for any plugin playing randomly or any big
playlists.
But one of the benefits to have it in the background is to skip annoying
radio announcements on a stream. I see that all streams with track
information have also a name for their announcements(I'm not totally
against them, but some of them are annoying). The plugin can mute volume
while that announcement is playing, or skip a blacklisted track if it is
in a playlist ( like Dont stop the music or random playlists, or a
friends playlist from Spotify) No need to integrate blacklists in
individual plugins.
Anyone?



mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins