stevekgoodwin;537036 Wrote: 
> Thanks! Definitely the way to go, although I think I need to enhance the
> extension mechanism slightly.
> 
> I've had a look into OceanTides and the others, and they seem to create
> their own "page" of data to display. What I'd like to do is to piggy
> back onto the printf style %X mechanism in the replaceMacros function
> -- that way users can choose information from different providers on
> the same screen -- I don't think that's possible with the extension
> API?
> 
> If replaceMacros called replaceMacros in extension modules. That'd be
> handy! If that's the right approach let me know -- I'm happy to
> suggest/code the change to the core SuperDateTime to support this.
> 
> A potential issue clashing with future % codes. My code uses
> %X[FMK]\d+(eg %X3 or %XF99.  \d is 1-99, and optional letter specifies
> a conversion to Fahrenheit/Miles/Knots).
> 
> My other thought is that in a perfect world where you got paid for this
> (!) it'd be nifty to refactor the various core providers into their own
> SuperDateTiem extensions (eg one for MLB and NLA, wunderground, etc).
> That could encourage more take-up of extensions (although create a bit
> of work in the first place for probably very little gain).
> 
> (Aussie users, give me a few weeks to get this fit for human
> consumption, new baby etc).
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.

-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