Not sure the best way to present the change as it's pretty minor.

Below is a code snippet for "plugin.pm" which lives in the
ExtendedAlarm-plugin.par file within the plugin.

If you search for "sub screensaverAlarmTimelines"

Replace that whole subroutine with this one (which is almost
identical):

sub screensaverAlarmTimelines {
        my $client = shift;

        my @line = (Slim::Utils::DateTime::longDateF(),
Slim::Utils::DateTime::timeF());
        
        my $alarmID = defined $nextAlarm{$client} ? $nextAlarm{$client} :
findNextAlarm($client);
        my $timestring = "default";

        if ($alarmID) {
                
                my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime(time);
                
                my $time = $prefs->client($client)->get('time.'.$alarmID);
                
                my ($h0, $h1, $m0, $m1, $p) =
Slim::Utils::DateTime::timeDigits($time);
                $timestring = ((defined($p) && $h0 == 0) ? ' ' : $h0) . $h1 . 
":" .
$m0 . $m1 . " " . (defined($p) ? $p : '');
                
                if ($prefs->client($client)->get('offDisplaySize')) {
                
                        # for large size, display in the format:    hh:mm   m 
xx:yy
                        # with:  hh = current hour, mm = current minute, m = 
alarm_mode, xx
= alarm hour, yy = alarm minute
                        my $sec = int(substr($line[1],6,2));
                        my $even = $sec - (int($sec / 2) * 2);     # blink of 
separator
                        my $sep = ".";
                        
                        if ($even) {$sep = ":";}
                        
                        my @alarmModes = ('*', '1','2','3','4','5','6','7','w', 
'e' ,'o',
'd');
                        
                        $line[1] = 
substr($line[1],0,2).$sep.substr($line[1],3,2)."   ";
                        $line[1] .=
$alarmModes[$prefs->client($client)->get("days.".$alarmID)];
                        $line[1] .= " $timestring";
                
                } else {
                        # for small size display verbose information
                        # upper line:  centered date (default style)
                        # lower line:  Time  hh:mm:ss   Alarm  hh:mm  mode
                
#                       my @alarmModes = ('7d', 'Mon', 'Tue', 'Wed', 'Thu', 
'Fri', 'Sat',
'Sun', 'Week', ,'SaSo', 'Next', 'Today');
#                       $line[1] .= " ".$client->string("PLUGIN_ALARM_WAKE")."
$timestring";
#                       $line[1] .= "
".$alarmModes[$prefs->client($client)->get("days.".$alarmID)];

                }
        }
        
        return {
                'center' => [EMAIL PROTECTED],
                'overlay'=> [ ($nextAlarm{$client} ?
$client->symbols('bell')."$timestring" : undef) ],
        };
}


The key bit regarding displays is the "'overlay'=> [
($nextAlarm{$client} ? $client->symbols('bell')."$timestring" : undef)
]," all I did was append the $timestring created above.

Hope that is of some help!


-- 
sk33ve
------------------------------------------------------------------------
sk33ve's Profile: http://forums.slimdevices.com/member.php?userid=16580
View this thread: http://forums.slimdevices.com/showthread.php?t=45943

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

Reply via email to