Re: [SlimDevices: Plugins] Execute a script when I press a given remotekey?

2007-07-21 Thread Marc Sherman
erland wrote:
 RunScript.pm should do it:
 http://forums.slimdevices.com/showthread.php?t=14362
 
 I made a small modification to:
 - Changed the name from ShutDown Server to RunScript
 - Support to connect it to a remote key (The original version just
 produced millions of log entries)

Thanks very much, Erland. I was getting to the point where I was going 
to write my own plugin, but I couldn't figure out what you needed to do 
to make it bindable to a remote key. What change was it you made to add 
that ability?

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


[SlimDevices: Plugins] Execute a script when I press a given remote key?

2007-07-20 Thread Marc Sherman
Is there any plugin that lets me execute an arbitrary script bound to a 
particular remote key? I was thinking that KDF's ExecuteScript plugin 
would do it, but that seems to be specifically for binding to player 
events, not arbitrary remote buttons.

The use case I have is that I just moved my home office to a dank room 
in the basement, and I can't hear anything anywhere else in the house 
when I'm down there with the fan on. So I want to set up slimserver so 
that if my wife's in a room with a squeezebox, she can hit a remote key 
(say 0.hold) and my (linux) slimserver will execute:
$ echo Marc get your butt upstairs | smbclient -M vomit

which will in turn pop up an alert on my windows desktop box.

Any pointers?

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


[SlimDevices: Plugins] SQLPlaylist Random Album: some albums start in the middle?

2007-06-25 Thread Marc Sherman
I've just started playing with the SQLPlaylist plugin, and I'm seeing 
some strange behaviour with the Random Album playlist. Sometimes, an 
album will start in the middle, instead of at the beginning.

If I sit and hammer the Play Playlist button over and over again, it 
will happen occasionally, but not all the time. The weird thing is, it 
always seems to happen to the same albums, too. Perhaps it's something 
strange with the way those albums are tagged?

Has anyone else ever seen this behaviour? Erland, is there any logging 
or other information you'd like me to collect for more details?

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


Re: [SlimDevices: Plugins] SQLPlaylist Random Album: some albums start in the middle?

2007-06-25 Thread Marc Sherman
erland wrote:
 Marc Sherman;210816 Wrote: 
 Erland, is there any logging or other information you'd like me to
 collect for more details?
 You can turn on the logging parameters in the bottom of the SQL
 PLaylists and Dynamic Playlists sections in the Server
 Settings/Plugins dialog. Look at the log directly after the problem
 occurs, you will find the log at:http://localhost:9000/log.txt
 Post the log in this thread or send it to me by mail.
 
 If the logging is correctly setup you should see some log entries
 starting with SQLPlayList and some starting with DynamicPlaylist.

Ok, here's one instance; note that it's not the beginning of the album 
that's cut off with this one, but rather a bunch of tracks in the middle 
of the album. The entire album has uniform genre tags -- in particular, 
there are no tracks on that album tagged Bonus, which are excluded 
from my Random Albums mix.

2007-06-25 11:07:49.7001 DynamicPlayList: Find returned 14 items after 
filtering
2007-06-25 11:07:49.7009 DynamicPlayList: Adding 
sqlplaylist_randomalbums: She's in Parties, 247
2007-06-25 11:07:49.7094 DynamicPlayList: Adding 13 tracks to end of 
playlist
2007-06-25 11:07:49.7118 DynamicPlayList: Adding continuous 
sqlplaylist_randomalbums with 20 items
2007-06-25 11:07:50.7200 DynamicPlayList: Get playlist: 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7205 DynamicPlayList: playRandom called with type 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7371 DynamicPlayList: Get playlist: 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7377 DynamicPlayList: Get playlist: 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7379 DynamicPlayList: 19 songs remaining, songIndex = 0
2007-06-25 11:07:50.7513 DynamicPlayList: Get playlist: 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7518 DynamicPlayList: Starting random selection of 
10 items for type: sqlplaylist_randomalbums
2007-06-25 11:07:50.7520 DynamicPlayList: Get playlist: 
sqlplaylist_randomalbums
2007-06-25 11:07:50.7521 DynamicPlayList: Calling: 
Plugins::SQLPlayList::Plugin with: sqlplaylist_randomalbums , 10 , 0
2007-06-25 11:07:50.7523 DynamicPlayList: Calling: 
Plugins::SQLPlayList::Plugin :: getNextDynamicPlayListTracks
2007-06-25 11:07:50.7524 SQLPlayList: Getting tracks for: randomalbums
2007-06-25 11:07:50.7525 SQLPlayList: Get playlist: randomalbums
2007-06-25 11:07:50.7550 SQLPlayList: Replacing 'PlaylistOffset' with 0
2007-06-25 11:07:50.7555 SQLPlayList: Replacing 'PlaylistActiveLibrary' 
with 0
2007-06-25 11:07:50.7556 SQLPlayList: Replacing 'PlaylistLimit' with 10
2007-06-25 11:07:50.7564 SQLPlayList: Executing: create temporary table 
sqlplaylist_random_albums (primary key (album)) select tracks.album from 
tracks join genre_track on tracks.id=genre_track.track join genres on 
genre_track.genre=genres.id left join dynamicplaylist_history on 
tracks.id=dynamicplaylist_history.id where audio=1 and 
dynamicplaylist_history.id is null and genres.name in 
('Alternative','Britpop','Electronic','Folk','Funk','Gothic','Grunge','Indie','Krautrock','New
 
Wave','Pop','Prog','Punk','Ramp;B','Rap','Reggae','Rock','Soul') and 
not exists (select * from tracks t2,genre_track,genres where 
t2.id=tracks.id and tracks.id=genre_track.track and 
genre_track.genre=genres.id and genres.name in ('Bonus')) group by 
tracks.album order by rand() limit 1;
2007-06-25 11:07:51.5372 SQLPlayList: Executing: select tracks.url from 
tracks join sqlplaylist_random_albums on 
tracks.album=sqlplaylist_random_albums.album join genre_track on 
tracks.id=genre_track.track join genres on genre_track.genre=genres.id 
left join dynamicplaylist_history on 
tracks.id=dynamicplaylist_history.id where audio=1 and 
dynamicplaylist_history.id is null and genres.name in 
('Alternative','Britpop','Electronic','Folk','Funk','Gothic','Grunge','Indie','Krautrock','New
 
Wave','Pop','Prog','Punk','Ramp;B','Rap','Reggae','Rock','Soul') and 
not exists (select * from tracks t2,genre_track,genres where 
t2.id=tracks.id and tracks.id=genre_track.track and 
genre_track.genre=genres.id and genres.name in ('Bonus')) group by 
tracks.id order by sqlplaylist_random_albums.album,tracks.tracknum;
2007-06-25 11:07:51.5444 SQLPlayList: Executing and collecting: select 
tracks.url from tracks join sqlplaylist_random_albums on 
tracks.album=sqlplaylist_random_albums.album join genre_track on 
tracks.id=genre_track.track join genres on genre_track.genre=genres.id 
left join dynamicplaylist_history on 
tracks.id=dynamicplaylist_history.id where audio=1 and 
dynamicplaylist_history.id is null and genres.name in 
('Alternative','Britpop','Electronic','Folk','Funk','Gothic','Grunge','Indie','Krautrock','New
 
Wave','Pop','Prog','Punk','Ramp;B','Rap','Reggae','Rock','Soul') and 
not exists (select * from tracks t2,genre_track,genres where 
t2.id=tracks.id and tracks.id=genre_track.track and 
genre_track.genre=genres.id and genres.name in ('Bonus')) group by 
tracks.id order by sqlplaylist_random_albums.album,tracks.tracknum;
2007-06-25

Re: [SlimDevices: Plugins] SQLPlaylist Random Album: some albums start in the middle?

2007-06-25 Thread Marc Sherman
erland wrote:

 Could you look at the Song Info page in the web interface for one of the
 missing songs, which genres does it contain ?

Here's the album view, note that Slimserver does think that it's all one
album:

Home / Artists / Prince / The Very Best of Prince
1 album with 17 songs by 1 artist.
All Songs
Play Add to playlist
1. I Wanna Be Your Lover from The Very Best of Prince by Prince
Play Add to playlist
2. 1999 from The Very Best of Prince by Prince
Play Add to playlist
3. Little Red Corvette from The Very Best of Prince by Prince
Play Add to playlist
4. When Doves Cry from The Very Best of Prince by Prince
Play Add to playlist
5. Let's Go Crazy from The Very Best of Prince by Prince
Play Add to playlist
6. Purple Rain from The Very Best of Prince by Prince
Play Add to playlist
7. I Would Die 4 U from The Very Best of Prince by Prince
Play Add to playlist
8. Raspberry Beret from The Very Best of Prince by Prince
Play Add to playlist
9. Kiss from The Very Best of Prince by Prince
Play Add to playlist
10. Sign 'O' the Times from The Very Best of Prince by Prince
Play Add to playlist
11. U Got the Look from The Very Best of Prince by Prince
Play Add to playlist
12. Alphabet St. from The Very Best of Prince by Prince
Play Add to playlist
13. Thieves in the Temple from The Very Best of Prince by Prince
Play Add to playlist
14. Gett Off from The Very Best of Prince by Prince
Play Add to playlist
15. Cream from The Very Best of Prince by Prince
Play Add to playlist
16. Diamonds and Pearls from The Very Best of Prince by Prince
Play Add to playlist
17. Money Don't Matter 2 Night from The Very Best of Prince by Prince
Play Add to playlist


Here's the song info for Purple Rain, which was included in the random
playlist:


*
  Title:
  Purple Rain
*
  Artist:
  Prince
*
  Album:
  The Very Best of Prince
*
  Genre:
  Funk
*
  Track:
  6
*
  File Format:
  MP3
*
  Duration:
  8:40
*
  Volume Adjustment:
  0.88 dB
*
  Album Volume Adjustment:
  0.26 dB
*
  Year:
  2001
*
  File Length:
  13,803,458 Bytes
*
  Bitrate:
  212kbps VBR
*
  Sample Rate:
  44.1 kHz
*
  ID3 Tag Version:
  ID3v2.3.0
*
  Location:
  /srv/music/P/Prince/2001-The Very Best of Prince/06-Purple
Rain.mp3 (Download)
*
  Date Modified:
  Wednesday, February 21, 2007, 10:08:05 AM


and finally, here's the song info for I Would Die 4 U, which was missing
from the random playlist:



*
  Title:
  I Would Die 4 U
*
  Artist:
  Prince
*
  Album:
  The Very Best of Prince
*
  Genre:
  Funk
*
  Track:
  7
*
  File Format:
  MP3
*
  Duration:
  2:56
*
  Volume Adjustment:
  0.73 dB
*
  Album Volume Adjustment:
  0.26 dB
*
  Year:
  2001
*
  File Length:
  4,742,837 Bytes
*
  Bitrate:
  214kbps VBR
*
  Sample Rate:
  44.1 kHz
*
  ID3 Tag Version:
  ID3v2.3.0
*
  Location:
  /srv/music/P/Prince/2001-The Very Best of Prince/07-I Would Die 4
U.mp3 (Download)
*
  Date Modified:
  Wednesday, February 21, 2007, 10:08:06 AM

No noticeable difference between the tags on the two tracks, as far as I
can see.

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


[SlimDevices: Plugins] DynamicPlaylists in alarms?

2007-06-25 Thread Marc Sherman
One more question about DymamicPlaylist/SQLPlaylist -- is it possible to
set an alarm using a DynamicPlaylist?

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


Re: [SlimDevices: Plugins] DynamicPlaylists in alarms?

2007-06-25 Thread Marc Sherman
erland wrote:
 You will need to patch the alarm plugin, see this thread for more
 details:
 http://forums.slimdevices.com/showthread.php?t=34668

Thanks again! Great plugin, by the way.

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


Re: [SlimDevices: Plugins] SQLPlaylist plugin: play one album then shutoff?

2007-06-24 Thread Marc Sherman
erland wrote:

 If you choose to customize the SQL and enter a playlist that looks like
 this it will only play a random album:
[snip]

 
 One idea is to use the sleep command instead and issue the sleep
 command as a start action with the number of seconds until sleep as
 parameter. This would result in something like this with sleep after
 1800 seconds:
[snip]

Thanks, that's exactly what I'll do.

One final question -- is it possible to map a Dynamic Playlist (such as 
a SQL playlist) to a key on the remote, perhaps using something like the 
way I currently bind the RandomPlay plugin:

modefunction_PLUGIN.RandomPlay::Plugin-albums

?

Thanks,
- Marc
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] SQLPlaylist plugin: play one album then shut off?

2007-06-21 Thread Marc Sherman
I'd like to create a playlist that plays a single randomly chosen album 
from a specific genre (Lullaby), and then shuts off the squeezebox.

I _think_ that SQLPlaylist can be configured to do this, but I'm not 
sure. I have a few questions:

1) How do I tell it to just play a single random album, instead of 
always adding another album to the end of the list when there's less 
than 10 tracks left?

2) Am I correct in thinking that a PlaylistStopAction1:cli: parameter 
can be used to shut off the squeezebox at the end of the playlist?

Thanks,
- Marc
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins