8

We'd like to change our screensavers to show the current status of our service at a glance. We already have a page that shows uptime, build status, and more as large red and green squares, and that page refreshes automatically.

We're all running Gnome. How can we make that page our screensaver?

2 Answers 2

5

try cutycap, a webkit based 'www-snapshoter':

CutyCapt is a small cross-platform command-line utility to capture WebKit's rendering of a web page into a variety of vector and bitmap formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP. See IECapt for a similar tool based on Internet Explorer.

then setup your screensaver application to pick up the snapshotted website pictures.

1
  • Hmmm... This is good, but I'd like a smoother solutionn. This requires a cron job, and a screensaver that's okay with rotating through a single image and doesn't cache. Hmm. Commented Sep 25, 2009 at 21:12
2

hmm ... maybe try the merger of what you both said ...

cron as "nobody" (or equivalent) every minute to run cutycapt into imagedir/date +nagios-%y-%m-%d_%T.jpg with auto-cleanup =

... * * * * * dir="/usr/share/admin/ScreenSaverDir" && a=date +$dir/nagios-%y-%m-%d_%T.png && CutyCapt --url=http://nagios.MyDomain.com/ --out=$a && && b=ls -1tr $dir | tail -1 && rm ls -1 $dir | egrep -v $b

so the most recent image is going to be the only thing in that directory but it will have a unique-to-the-second filename, guaranteeing that it will not be cached by the screensaver

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .