Author Topic: Webcam popup script.  (Read 3270 times)

0 Members and 1 Guest are viewing this topic.

StrikemanXL

  • $upporter
  • Jr. Member
  • *****
  • Posts: 13
  • Karma: 1
    • View Profile
Webcam popup script.
« on: September 22, 2013, 07:29:16 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Webcam popup script.
« Reply #1 on: September 22, 2013, 09:57:51 PM »
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.