PDA

View Full Version : Woo Hoo! my own desklet



xmastree
August 19th, 2005, 07:22 AM
So, I was playing with desklets, and I installed that dinocam one. I looked at the source, and realised that it just displays a picture.
I have a webcam in my Internet cafe, so I changed a couple of things and I now have my own custom desklet! :cool:

Anyone care to take a look? It's here (http://www.xmastree.34sp.com/ubuntu/CGInternetCam.tgz).

warp4ever
August 4th, 2007, 10:30 PM
I came across your post a bit late :))
I'm curious how you managed the desklet

init1
August 4th, 2007, 10:47 PM
The page does not load.

popch
August 4th, 2007, 10:50 PM
The page does not load.

after two years?

xmastree
August 4th, 2007, 11:09 PM
blimey, that's a blast from the past...

Basically, IIRC, the dinocam desklet displayed an image. At the time (and no longer) I had an internet cafe, with a webcam (Remnants of it are here (http://www.cginternet.net/zwebcam/webcam.html)).
I looked at the code for the desklet and altered the url of the picture to my own.

I think...

But it was long ago and far away...

This (http://www.cginternet.net/zwebcam/tech.html) is how I did the cam thing.

The desklet is now here (http://www.cginternet.net/ubuntu/CGInternetCam.tgz) but it won't work since the url's have changed.

wersdaluv
August 5th, 2007, 12:40 AM
:lolflag:

I did not realize how old this thread was until I read "after two years?"

warp4ever
August 11th, 2007, 08:12 PM
[QUOTE=xmastree;3134043]blimey, that's a blast from the past...

Ubuntu is gaining users any minute, any day, any week, any month, any year, any two years.

Thanks, i'll figure if i can get it to work with one of the BBC cams.
The included Gdesklet Cam wouldn' t work with them.

xmastree
August 12th, 2007, 08:08 AM
<?xml version="1.0" encoding="UTF-8"?>

<display width="328" height="248" bg-color="#000050a0"
window-flags="sticky, below">

<meta author="Chris"
category="fun/picture"
description="CG Internet Webcam."
name="CGInternet"
version="1.0"/>

<sensor id="cam" module="External,
echo http://www.cginternet.net/zwebcam/capture.jpg,
1000000"/>

<image anchor="center" x="50%" y="50%" watch="uri=cam:value"
uri="http://www.cginternet.net/zwebcam/capture.jpg"/>
<label value="DinoCam" x="2%" y="2%" font="Sans italic 14" color="red"/>

</display>



If I remember correctly (and it was long ago and far away) you just need to edit the areas I've highlighted in red, mainly the image size, image url and the refresh rate, currently set at 1000000. I think that must be milliseconds.

Although having just tried it with the correct url, it doesn't work, :-k

What's the url of the image you want to display?