sk33ve;295012 Wrote:
> Can you post your version? I'll have a look and see if I can see
> anything
Hi,
thanks for your support. The code is listed below. I've also tried the
same thing as you with the timestring after the bell, but i can see
only the bell for a two line display, but not for the single line
display. There i see the time as it is displayed in Date/Time.
I would like to have a one line display with large Numbers of time and
at least the bell symbol (next alarm time would be also fine if
possible)
Thanks,
mr_hyde
Code:
--------------------
sub screensaverAlarmTimelines {
my $client = shift;
my @line = (Slim::Utils::DateTime::longDateF(), getFuzzyTimeF());
my $alarmID = defined $nextAlarm{$client} ? $nextAlarm{$client} :
findNextAlarm($client);
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);
my $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) ],
'fonts' => $fontDef, # I tried to add this, since it is also
in the Date/Time Plugin but the same situation
};
--------------------
--
mr_hyde
2 x Squeezebox 3 - SSOTS - UBSUtil - Squeezecenter 7.0.1 - QNAP TS109
Pro (2.0.1_0324T)
------------------------------------------------------------------------
mr_hyde's Profile: http://forums.slimdevices.com/member.php?userid=6032
View this thread: http://forums.slimdevices.com/showthread.php?t=45943
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins