PDA

View Full Version : New Plugin: HugeDateTime



Ted Cabeen
2005-03-04, 17:39
I've written a modified version of the DateTime Screensaver plugin
that always displays the tme in the Huge font, ignoring the primary
font. My wife wanted the time/date screensaver in huge mode so that
she could see the time from across the room, but I really prefer the
small Now Playing display, so I wrote this plugin. It works pretty
well. This is my first plugin, so can someone with a little more
plugin experience look over it when they get a chance and tell me if
there are any changes I should make?

You can get it here: http://www.cabeen.org/HugeDateTime.tar.gz

I'd like to modify it or the slimserver somehow so that the
screensaver is deactivated briefly when a new song is opened, but I
couldn't find an easy way to do that. Any ideas?

--
Ted Cabeen http://www.cabeen.org ted (AT) cabeen (DOT) org
Check Website or Keyserver for PGP/GPG Key BA0349D2 ted (AT) impulse (DOT) net
"I have taken all knowledge to be my province." -F. Bacon secabeen (AT) pobox (DOT) com
"Human kind cannot bear very much reality."-T.S.Eliot secabeen (AT) gmail (DOT) com

kdf
2005-03-04, 19:29
Quoting Ted Cabeen <secabeen (AT) pobox (DOT) com>:

> I've written a modified version of the DateTime Screensaver plugin
> that always displays the tme in the Huge font, ignoring the primary
> font. My wife wanted the time/date screensaver in huge mode so that
> she could see the time from across the room, but I really prefer the
> small Now Playing display, so I wrote this plugin. It works pretty
> well. This is my first plugin, so can someone with a little more
> plugin experience look over it when they get a chance and tell me if
> there are any changes I should make?
>
> You can get it here: http://www.cabeen.org/HugeDateTime.tar.gz
>
> I'd like to modify it or the slimserver somehow so that the
> screensaver is deactivated briefly when a new song is opened, but I
> couldn't find an easy way to do that. Any ideas?

set a callback on open song.

The scrobbler plugin and execute plugin both use callbacks to get a rough idea
on when a song is changing. otherwise, you could try grab the songtime and
calculate when the transition will happen.

getting out of the screensaver should be possible by calling
Slim::Buttons::Screensaver::wakeup()

screensaver can be left ot engage on its own, or maybe you can backset the
lastIRtime to trick it into triggering earlier.

-kdf