VANCOUVER ISLAND WINDTALK • Desktop applets?
Page 1 of 2

Desktop applets?

Posted: Tue May 20, 2008 9:36 am
by jeamer
Hey, I was wondering how difficult it would be to develop some downloadable desktop applets for some of the features of this site... like the SI map for one. I know that it's the first thing I check every time I sit down at the compy so to have it on the desktop would be a seriously cool thing. Thoughts?

Posted: Tue May 20, 2008 12:04 pm
by sonicspectrum
I've thought for a while that a little window on my tool bar that showed the current wind conditons at Ogden (or where ever the user wants) would be sweet, something small by my clock...

Posted: Tue May 20, 2008 12:05 pm
by Russian Dood
First question I have to ask what platform are we talking about? Windows Vista? Mac OSX? Linux Compiz? iPod touch?

As an alternative for Win XP users I would suggest using active desktop features to point to the information you are interested in.

Posted: Tue May 20, 2008 12:24 pm
by bwd
Here is what I do to get the Latest Reports on my desktop. I use the active desktop feature in Windows XP.

1. Copy and paste this text and save it to a file called pda.htm:

Code: Select all

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-ca">
<META HTTP-EQUIV="refresh" CONTENT="300">
<title>Latest Table</title>
</head>

<body>

<p>
<iframe name="I1" src="/http&#58;//www.bigwavedave.ca/pda.txt" width="450" height="526" scrolling="no" marginwidth="1" marginheight="1" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>


</body>

</html>

2. Right click on desktop
3. Select Properties.
4. Select Desktop tab.
5. Select Customize Desktop.
6. Select Web tab.
7. Select New.
8. Browse to the saved pda.htm file.

This will add the Latest Reports to your desktop and they will get refreshed every 5 minutes. Not exactly a desktop applet but it works.

I'll put something together for the South Island map.
Dave

Posted: Tue May 20, 2008 1:36 pm
by jeamer
Cool, well now you totally motivated me to find a solution for Ubuntu, and find I did. Follow this:

http://ubuntuforums.org/showthread.php?t=297027

If someone doesn't like to write script, here's my slightly modified one:

Code: Select all

#!/bin/bash

#directory you want the snapshots to be kept
LOCATION="/home/eamer/Background/"

#website to make a snapshot of
WEBSITE="http&#58;//www.bigwavedave.ca/latest.php"

#check for an internet connection; if not connected, use backup of last successful snapshot
x=`ping -c1 google.com 2>&1`

if &#91; "$x" = "ping&#58; unknown host google.com" &#93;; then
	if &#91; -f $LOCATION/background-2.png &#93;; then	
		cp $LOCATION/background-2.png $LOCATION/background-1.png
	fi
		
else 
	#use kwebdesktop to get a snapshot of the webpage
	/usr/bin/kwebdesktop 1280 1024 $LOCATION/background-1.png "$WEBSITE"

	if &#91; -f $LOCATION/background-1.png &#93;; then	
		cp $LOCATION/background-1.png $LOCATION/background-2.png
	fi
fi

#use gconftool to set the updated snapshot
gconftool-2 -t str --set /desktop/gnome/background/picture_filename "$LOCATION/background-2.png"
#change it twice so that it updates to the new snapshot
gconftool-2 -t str --set /desktop/gnome/background/picture_filename "$LOCATION/background-1.png"
gconftool-2 -t str --set /desktop/gnome/background/picture_options "centered"
Just make sure you change your display resolution (where it says 1280 1084) and your folder target (/home/eamer/Background ... also remember to create the folder first!)

Also, this script doesn't include refreshing. If you want that, go to page five of that thread for a workaround. I didn't enable this as I'm not gonna keep the background anyways... I didn't really want the whole background to be the table, just a wee little thing. If anyone here is a serious computer dude, I would praise them a thousand times over to make a GDesklets applet for BWD, that would be AWESOME.

Posted: Tue May 20, 2008 4:58 pm
by Russian Dood
I guess for ubuntu ( or any linux to that matter ) another solution could be to use frameless semi-transparent xterm window on the desktop with links or lynx running in it. That might even solve refresh problem.

Having whole KDE installed just to see one page on the desktop seems like a little overkill to me.

On the other hand just found that Dave provides RSS. You can set up RSS desklet to aggregate this feed:

http://www.bigwavedave.ca/windalert_rss.xml

Posted: Tue May 20, 2008 5:26 pm
by JL
Gosh, why didn't I think of that ? :roll:

Posted: Tue May 20, 2008 8:15 pm
by Wingnut
Not geeky enough? :D

Posted: Tue May 20, 2008 9:22 pm
by jeamer
yeah, you only install KDE and use it to run the script... you don't have to actually run the desktop all the time. It's only 2 megs, I didn't think too much of it.

Good call on the RSS desklet.. I'll give that a try when I've got a little time. I don't even have GDesklets on my computer... never had anything seem too appealing to me (until now, that is) :P

Posted: Wed May 21, 2008 7:49 am
by JL
I'm so old school: FIREFOX: http://www.bigwavedave.ca/latest.php tools/options/advanced/main/use current page 8) Then I click on 'home' ...

Posted: Wed May 21, 2008 3:41 pm
by sonicspectrum
Yup. I'm dreaming of a mac applet for the computer and a PC (XP) tiny little tool bar like what windows media player shrinks into when minimised for the desktop. I sit in front of this computer all day, might as well be dreaming!

Posted: Wed May 21, 2008 4:16 pm
by jeamer
success.

with compiz and screenlets, I have the RSS feed on my desktop that is updated every five minutes! Love it! Thanks for the suggestion RD.

Here's what it looks like:

Posted: Wed May 21, 2008 9:12 pm
by bwd
Glad someone is finally using the RSS feeds. I've been using them for months and find them useful. The wind alert feed only updates when certain sites hit the windspeeds shown here:
http://www.bigwavedave.ca/phpBB2/viewtopic.php?t=2969

Posted: Wed May 21, 2008 9:30 pm
by JL
I use em' 8)

Posted: Thu May 22, 2008 1:54 pm
by downwind dave
at lunchtime i installed a sweet applet on my desktop too

Image