WebCam Server 2

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

WebCam Server 2

#1 Post by Geoffrey »

Update

Made a few changes, moved the slider controls, can now close the viewer widget by right clicking the mouse on the small preview in the main UI, this also restarts the preview, fixed so that the snapshot directory opens with the default file manager, configuration is saved when server is run.


Some time ago I wrote some scripts to utilize a webcam-server which was reliant on a java applet to be viewed, I've revisited this and spent the last few weeks coming up with something that is more featured than my previous attempts.

I'm no way a great script writer, so this could well be improved on by anybody that finds it useful, everybody's welcome to add anything they feel would be an improvement.

This now uses gtkdialog4 buttons in conjunction with gtk <timer> for the viewers, a preview in the main UI and a separate viewer for the desktop that can be used as a widget if need be, the widget function is achieved by using akash_rawal's gtk2desklet-3.1.pet from here http://www.murga-linux.com/puppy/viewto ... 570#588570

It is not streaming video but a series of jpegs that are snapshot using wget and by no means perfect, it may not work with every video device, though I have managed to have it work quite well in Carolina/Saluki and pemasu's Upup Precise 54X3 with the usb webcam that I have,

Also included in the package "pho", a small image viewer that allows images to be rotated, zoomed, advanced and deleted using the keyboard , anyway here it is, there isn't a lot more I can say about it other than to use it over the internet you will need some knowledge on forwarding ports in the your router, there are some sample html scripts in the package that can be used on a web site to view your webcam, they are located in /usr/share/webcam/Docs/html_samples, these will need to be edited, they currently work on the 127.0.0.1:8888

zigbert has a small webcam viewer that will work with this server, http://www.murga-linux.com/puppy/viewto ... 041#508041 this can be used on other computers to view either on a LAN or over the internet.
Attachments
webcam_server-0.3.pet
the gtk2desklet-3.1.pet in required for the widget function to work, it will work without it.
(144.91 KiB) Downloaded 582 times
webcam.jpg
(91.72 KiB) Downloaded 805 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#2 Post by Geoffrey »

Updated to version 0.3
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

Post Reply