News:

Would you like to say "Thanks!" for extra support or new features that we provided? Donations are gratefully accepted.

Main Menu

Webcam popup script.

Started by StrikemanXL, September 22, 2013, 07:29:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

StrikemanXL

Hi guys :) 

Here is a nice script to bring up a popup of your web cam(jpeg) when triggered by VC in xbmc.

Just install this  https://github.com/ssshake/xbmc-scripts/blob/master/script.doorbell.zip?raw=true in xbmc.

Then go to C:\Users\User\AppData\Roaming\XBMC\addons\script.doorbell\doorbell.py     

Open it up in notepad and change the line url='https://asdf.com/camera/'; and change it to the location of your jpeg file.

(For local file) To get my location I dragged and dropped the jpeg to a webrowser,  this is mine>>  file:///C:/Users/User/Google%20Drive/DriveA/Webcam/video/Front%20cam/grabs/doorbell.jpg

Which was created using the Save Frame/FTP in ispy.

In ispy I use the motion detection to trigger an Alert which executes the udpsender.exe  with arguments
33000 "VC.TriggerEvent&&Doorbell.Detected
In VC create a new command and use the XJson.ExecBuiltin  RunAddon(script.doorbell)

XBMC door bell script guide
http://homeawesomation.wordpress.com/2013/02/18/doorbell-ipcam-xbmc-update/

My first guide post so please be kind :)

jitterjames

Wow.  This is very interesting.  Thanks for sharing and providing the guide.  Easy to follow.

This idea has got me thinking about a way to do OSD popups in XBMC by adapting this script a little bit.

Also, the trick of dragging the image to your web browser to get the path is pretty neat.  Works great.