Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro to generate on-the-fly playlists
I wanted to have a way to generate persistent playlists from the interface viewer, and this macro is my first attempt at accomplishing this. Once you generate a playlist for your media player, running this macro will generate a file containing those cookies. You can then run the macro again and read the cookies back in.

The macro takes three String parameters

1. moniker of the audio renderer that has the playlist
2. Filename to read or write the cookies to
3. Command: "W" to write the cookies, "R" to read.

So for example

(CQCAudio, playlist1, R) or (CQCAudio, playlist1, W).

You need to create a Playlists directory in the CQCData/MacroFileRoot directory on each computer where the interface viewer runs. This is one quirk of macros through the action system, as they can only access the file system on the local computer.

1. As I said above, each computer running the interface viewer needs to have its own Playlist directory. Thus playlists are unique to each interface viewer.

2. If you reload and change the repository, the cookies will change and the playlists will not be accurate (as expected I suppose).

So it's a start, but not perfect. Maybe the next version could use the variable driver and write the cookies to a stringlist field...

Obviously the best solution would be native support per Dean (hint, hint)!

Give it a whirl and let me know.

Attached Files
.cqcmacropack   Playlists.CQCMacroPack (Size: 1.24 KB / Downloads: 4)
dude, sweet! Great timing too, after months/years of no parties, i've got another shindig coming up on 8/1 (3rd in 6 months). This'll give me time to actually finish up some stuff and get this working.
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs:

Possibly Related Threads…
Thread Author Replies Views Last Post
  Artwork for Playlists Trioxide 12 5,656 11-02-2013, 11:05 AM
Last Post: Dean Roddey
  Macro to run multiple lights off/on rtarver 5 2,874 09-30-2012, 08:26 PM
Last Post: anogee
  Best way to implement a timed action/macro brathnach 3 2,483 04-11-2011, 07:20 PM
Last Post: Dean Roddey
  WMP Playlists leeintralogic 12 4,343 06-24-2009, 10:06 AM
Last Post: gacevich
  new method for making jriver playlists yet? pjwinstalls 3 2,149 01-10-2009, 02:45 PM
Last Post: IVB
  Easy Playlists in J River Media Center NishanF 5 3,535 11-08-2008, 10:41 AM
Last Post: IVB
  Anyone hack together JRMC Playlists via CQC? IVB 4 2,485 10-12-2008, 07:08 PM
Last Post: RobWalker
  Exception in Macro Workshop anogee 18 6,196 09-24-2008, 06:47 PM
Last Post: anogee
  No artwork in Playlists Trioxide 4 2,300 04-04-2008, 08:36 PM
Last Post: MikeW
  Simplest way to just get playlists playing in CQC Sendero 12 4,082 10-10-2007, 10:30 AM
Last Post: Dean Roddey

Forum Jump:

Users browsing this thread: 1 Guest(s)