GoCubs;539938 Wrote: 
> Ahh...  that's correct.  I do not currently provide a mechanism to have
> your own % macro data.  I only allow additional cycling items.  Good
> idea but might be a little tricky to implement.  Would probably need to
> make them %x#### and we'd run into the risk of two plugins using the
> same ####.
> 
> Outside of weather it would have been 'cleaner' to have each of the
> data providers be standalone plugins that use the API, but then each of
> them would have to have their own configuration, etc and it'd be a pain
> to keep them all current with any changes necessary for them to keep
> working with changes to Squeezebox server.
> 

I've gone ahead and added a new Perl sub that allows you to add your
own custom % macros.  It's very simple-
addMacro('%X1234','VALUE');
SDT will basically search for whatever value you pass in as argument 1
and replace it with argument 2 with each data refresh.  Call addMacro
for each custom macro you'd like to add.

This will be in 5.8.16.  Not sure when I'll post it, but if you're
ready for it lemme know and I can quickly post.

Thanks
-Greg


-- 
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

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

Reply via email to