Mike Meyer;543602 Wrote: 
> Sounds good Greg.   Is this %macro replacement string something
> available for me to start trying now or something that you are working
> on?  If you can point me at an example when there is one I'll try to
> figure it out.  Let me know what versions of things I should be using.
> 
It's available on the previous version I posted in this thread, but I
can do even better!  Attached is my latest version that adds some
additional external functions to add your own sports leagues/teams. 
Teams added will be included in the data hash sent to CustomClock. 
They'll also be available from the JIVE Extras menu like how other
scores are listed on the current version.

In this version I've also added league AND team logos.  Sorry Erland as
these additional optional 'logoURL', homeLogoURL, and awayLogoURL data
points may break your existing logic.  In this version the logoURLs are
included for all SDT-supported sport leagues and team logos are
supported for MLB.  I'll add others as I have time.  The external API
for adding custom leagues/sports also supports optional logos.

This version also includes support for the additional map types I
discussed previously and custom maps.  I've also added
'MapRefreshSuccess' status to the SuperDateTimeState dispatch that is
called whenever the weather maps update.  This only occurs if a custom
plugin adds a custom map or if the user changes their weather
identifier/map setting.

Please let me know what you think.

New external APIs (I'll put together some better docs soon but they're
fairly self-explanatory)-

#External API to add a custom weather map
sub addCustomWeatherMap {
        my $name = shift;
        my $URL = shift;
        my $code = shift; #Code isn't very important for custom maps

#External API to remove a custom weather map
sub delCustomWeatherMap {
        my $name = shift;

#External API to add a custom sport score
#Should only be called during a dataRefresh
sub addCustomSportScore(\%) {
HASH REF        
        $params->{'gameTime'};
        $params->{'homeTeam'};
        $params->{'homeScore'};
        $params->{'awayTeam'};
        $params->{'awayScore'};
        $params->{'homeLogoURL'); (OPTIONAL)
        $params->{'awayLogoURL'}; (OPTIONAL)

#External API to add an icon for a custom sport
sub addCustomSportLogo {
        my $sport = shift;;
        my $imgURL = shift;;

#External API to remove all sports scores and icon for a particular
custom sport
#Should only be called during a dataRefresh
sub delCustomSport {
        my $sport = shift;

#External API to remove sports scores for a particular custom sport
#Should only be called during a dataRefresh
sub delCustomSportScore {
        my $sport = shift;
        my $gameID = shift;


*** As before please rename pdf to .zip


+-------------------------------------------------------------------+
|Filename: SuperDateTime5-9-0B2.pdf                                 |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=9837|
+-------------------------------------------------------------------+

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

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive

Reply via email to