• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 20
Release Security CAM Overlay add-on
#46
Hi and a Happy New Year!
I have a motion based Raspberry Camera and was looking for such a window overlay solution. Great addon.

The motion url is e.g.: http://192.168.1.1:8080 and gives back an (m)jpeg (works well in a browser).
I've installed the version 0.4 of the addon on a XBMC 12.2 (Openelec 3.2.4)
If I give the URL http://192.168.1.1:8080 in the configuration tab and start the addon, XBMC hangs...

The last entry in the log-file is: "20:12:34 T:140378363643648 NOTICE: -->Python Interpreter Initialized<--"

Same behaviour in XBMC 12.3 on Windows 8.1

Probably it is a problem, that there is no file name in the URL?
Any help appreciated..

Thanks!
Reply
#47
wow this script will be very useful for me but so far i was unable to make it work
my camera is a vivotek and i found the url for the image

http://192.168.1.64:8080/cgi-bin/video.jpg ( in any browser i can see the cam)


Code:
14:25:02 T:1144  NOTICE: -->Python Interpreter Initialized<--
14:25:02 T:1144   DEBUG: XBPyThread::Process - The source file to load is J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py
14:25:02 T:1144   DEBUG: XBPyThread::Process - Setting the Python path to J:\xbmc portable\XBMC\portable_data\addons\script.securitycam;J:\xbmc portable\XBMC\portable_data\addons\script.module.t0mm0.common\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.chardet\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.simplejson\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.beautifulsoup\lib;J:\xbmc portable\XBMC\addons\script.module.pil\lib;J:\xbmc portable\XBMC\portable_data\addons\script.common.plugin.cache\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.simple.downloader\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.requests\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.urlresolver\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.buggalo\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.mechanize\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.parsedom\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.elementtree\lib;J:\xbmc portable\XBMC\system\python\DLLs;J:\xbmc portable\XBMC\system\python\Lib;J:\xbmc portable\XBMC\python26.zip;J:\xbmc portable\XBMC\system\python\lib\plat-win;J:\xbmc portable\XBMC\system\python\lib\lib-tk;J:\xbmc portable\XBMC;J:\xbmc portable\XBMC\system\python;J:\xbmc portable\XBMC\system\python\lib\site-packages;
14:25:02 T:1144   DEBUG: XBPyThread::Process - Entering source directory J:\xbmc portable\XBMC\portable_data\addons\script.securitycam
14:25:02 T:1144   DEBUG: Instantiating addon using automatically obtained id of "script.securitycam" dependent on version 2.0 of the xbmc.python api
14:25:02 T:5024   DEBUG: ------ Window Init () ------
14:25:05 T:5024   DEBUG: started alarm with name: 87move
14:25:05 T:5024    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://www.google.com (easy=09FB3010, multi=00000000)
14:25:12 T:3648   DEBUG: Suspended the Sink
14:25:17 T:5024    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://api.tmdb.org (easy=0EE13410, multi=09DD9E68)
14:25:18 T:1144   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno socket error] _ssl.c:475: The handshake operation timed out
                                            Traceback (most recent call last):
                                              File "J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py", line 60, in <module>
                                                urllib.urlretrieve(url, __snapshot__)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 93, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 239, in retrieve
                                                fp = self.open(url, data)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 207, in open
                                                return getattr(self, name)(url)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 441, in open_https
                                                h.endheaders()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 908, in endheaders
                                                self._send_output()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 780, in _send_output
                                                self.send(msg)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 739, in send
                                                self.connect()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 1116, in connect
                                                self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 338, in wrap_socket
                                                suppress_ragged_eofs=suppress_ragged_eofs)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 120, in __init__
                                                self.do_handshake()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 279, in do_handshake
                                                self._sslobj.do_handshake()
                                            IOError: [Errno socket error] _ssl.c:475: The handshake operation timed out
                                            -->End of Python script error report<--
14:25:18 T:5024   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:25:18 T:3648   DEBUG: Resumed the Sink
14:25:18 T:3648   DEBUG: CSoftAE::Run - Sink restart flagged
14:25:18 T:3648    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
14:25:18 T:3648    INFO: CAESinkWASAPI::InitializeExclusive: Format is Supported - will attempt to Initialize
14:25:18 T:3648    INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE4, 44100, 2
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - WASAPI Initialized:
14:25:18 T:3648   DEBUG:   Output Device : Speakers - Altavoces (Dispositivo de High Definition Audio)
14:25:18 T:3648   DEBUG:   Sample Rate   : 44100
14:25:18 T:3648   DEBUG:   Sample Format : AE_FMT_S24NE4
14:25:18 T:3648   DEBUG:   Channel Count : 2
14:25:18 T:3648   DEBUG:   Channel Layout: FL,FR
14:25:18 T:3648   DEBUG:   Frames        : 2208
14:25:18 T:3648   DEBUG:   Frame Samples : 4416
14:25:18 T:3648   DEBUG:   Frame Size    : 8
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 17664
14:25:18 T:1144    INFO: Python script stopped
14:25:18 T:1144   DEBUG: Thread XBPyThread 1144 terminating
14:25:18 T:5024   DEBUG: waiting for python thread 12 (J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py) to stop
14:25:18 T:5024   DEBUG: python thread 12 (J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py) destructed


any idea if my url had something to do with the script or is anything else wrong
thanks
Reply
#48
(2014-01-08, 21:33)photon2000 Wrote: Hi and a Happy New Year!
I have a motion based Raspberry Camera and was looking for such a window overlay solution. Great addon.

The motion url is e.g.: http://192.168.1.1:8080 and gives back an (m)jpeg (works well in a browser).
I've installed the version 0.4 of the addon on a XBMC 12.2 (Openelec 3.2.4)
If I give the URL http://192.168.1.1:8080 in the configuration tab and start the addon, XBMC hangs...

The last entry in the log-file is: "20:12:34 T:140378363643648 NOTICE: -->Python Interpreter Initialized<--"

Same behaviour in XBMC 12.3 on Windows 8.1

Probably it is a problem, that there is no file name in the URL?
Any help appreciated..

Thanks!

I'm not sure what the issue would be here. Not having a filename in the URL shouldn't be an issue as far as I know. Can you experiment with another image source? Any online .jpg should do.

(2014-01-08, 22:31)warlion Wrote: wow this script will be very useful for me but so far i was unable to make it work
my camera is a vivotek and i found the url for the image

http://192.168.1.64:8080/cgi-bin/video.jpg ( in any browser i can see the cam)


Code:
14:25:02 T:1144  NOTICE: -->Python Interpreter Initialized<--
14:25:02 T:1144   DEBUG: XBPyThread::Process - The source file to load is J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py
14:25:02 T:1144   DEBUG: XBPyThread::Process - Setting the Python path to J:\xbmc portable\XBMC\portable_data\addons\script.securitycam;J:\xbmc portable\XBMC\portable_data\addons\script.module.t0mm0.common\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.chardet\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.simplejson\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.beautifulsoup\lib;J:\xbmc portable\XBMC\addons\script.module.pil\lib;J:\xbmc portable\XBMC\portable_data\addons\script.common.plugin.cache\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.simple.downloader\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.requests\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.urlresolver\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.buggalo\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.mechanize\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.parsedom\lib;J:\xbmc portable\XBMC\portable_data\addons\script.module.elementtree\lib;J:\xbmc portable\XBMC\system\python\DLLs;J:\xbmc portable\XBMC\system\python\Lib;J:\xbmc portable\XBMC\python26.zip;J:\xbmc portable\XBMC\system\python\lib\plat-win;J:\xbmc portable\XBMC\system\python\lib\lib-tk;J:\xbmc portable\XBMC;J:\xbmc portable\XBMC\system\python;J:\xbmc portable\XBMC\system\python\lib\site-packages;
14:25:02 T:1144   DEBUG: XBPyThread::Process - Entering source directory J:\xbmc portable\XBMC\portable_data\addons\script.securitycam
14:25:02 T:1144   DEBUG: Instantiating addon using automatically obtained id of "script.securitycam" dependent on version 2.0 of the xbmc.python api
14:25:02 T:5024   DEBUG: ------ Window Init () ------
14:25:05 T:5024   DEBUG: started alarm with name: 87move
14:25:05 T:5024    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://www.google.com (easy=09FB3010, multi=00000000)
14:25:12 T:3648   DEBUG: Suspended the Sink
14:25:17 T:5024    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://api.tmdb.org (easy=0EE13410, multi=09DD9E68)
14:25:18 T:1144   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno socket error] _ssl.c:475: The handshake operation timed out
                                            Traceback (most recent call last):
                                              File "J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py", line 60, in <module>
                                                urllib.urlretrieve(url, __snapshot__)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 93, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 239, in retrieve
                                                fp = self.open(url, data)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 207, in open
                                                return getattr(self, name)(url)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\urllib.py", line 441, in open_https
                                                h.endheaders()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 908, in endheaders
                                                self._send_output()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 780, in _send_output
                                                self.send(msg)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 739, in send
                                                self.connect()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\httplib.py", line 1116, in connect
                                                self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 338, in wrap_socket
                                                suppress_ragged_eofs=suppress_ragged_eofs)
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 120, in __init__
                                                self.do_handshake()
                                              File "J:\xbmc portable\XBMC\system\python\Lib\ssl.py", line 279, in do_handshake
                                                self._sslobj.do_handshake()
                                            IOError: [Errno socket error] _ssl.c:475: The handshake operation timed out
                                            -->End of Python script error report<--
14:25:18 T:5024   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:25:18 T:3648   DEBUG: Resumed the Sink
14:25:18 T:3648   DEBUG: CSoftAE::Run - Sink restart flagged
14:25:18 T:3648    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
14:25:18 T:3648    INFO: CAESinkWASAPI::InitializeExclusive: Format is Supported - will attempt to Initialize
14:25:18 T:3648    INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE4, 44100, 2
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - WASAPI Initialized:
14:25:18 T:3648   DEBUG:   Output Device : Speakers - Altavoces (Dispositivo de High Definition Audio)
14:25:18 T:3648   DEBUG:   Sample Rate   : 44100
14:25:18 T:3648   DEBUG:   Sample Format : AE_FMT_S24NE4
14:25:18 T:3648   DEBUG:   Channel Count : 2
14:25:18 T:3648   DEBUG:   Channel Layout: FL,FR
14:25:18 T:3648   DEBUG:   Frames        : 2208
14:25:18 T:3648   DEBUG:   Frame Samples : 4416
14:25:18 T:3648   DEBUG:   Frame Size    : 8
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
14:25:18 T:3648   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 17664
14:25:18 T:1144    INFO: Python script stopped
14:25:18 T:1144   DEBUG: Thread XBPyThread 1144 terminating
14:25:18 T:5024   DEBUG: waiting for python thread 12 (J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py) to stop
14:25:18 T:5024   DEBUG: python thread 12 (J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\default.py) destructed[/code]


any idea if my url had something to do with the script or is anything else wrong
thanks

Is there any chance your camera is configured to use https (SSL)? From the provided debug log it appears the urllib library is failing to retrieve the image from the url and is complaining about ssl:
Code:
Error Contents: [Errno socket error] _ssl.c:475: The handshake operation timed out

Alternatively, is there any chance the script is being denied write access to:
Code:
J:\xbmc portable\XBMC\portable_data\addons\script.securitycam\resources\media\

(2014-01-08, 02:37)cw-kid Wrote: Hi

I seem to have an issue with Aeon MQ5. When I am playing music the CAM overlay appears just fine, as you can see in the screen shots on my blog post here. But today I was playing a movie and the CAM overlay looks like the below..

My Home Automation scene pops up a text notification first in XBMC, then pauses the video playback and then finally calls the CAM overlay.

Its very dark outside now so you can't see much of a CAM image, however you can see the issue with the Starring Actors on top of the CAM overlay.

Image

If I comment out the pause command, then the CAM overlay appears OK over the playing movie etc.

Image

Thanks

(2014-01-07, 03:29)iolaus Wrote: I'm not sure, however, if it is possible to pass script arguments via the json call. If anyone knows, please share.

I am no expert by any means, but I do recall reading about being able to pass parameters to an add-on via a JSON call. I am sure we will be able to work it out some how. I'll have another read on it time permitting.

Thanks.

I've seen this issue on a couple of UI elements in Aeon Nox as well but none that covered so much of the security cam image. I'm not sure if there is a way to for the security cam window to be displayed on top of those elements or if it is an issue with the skin. Anyone have some insight on this?
Reply
#49
It's probably the render order of the dialogs. Each dialog has a <zorder> attribute that can be used for altering who renders on top of who. In the case where both <zorder>'s are the same, the first one open renders first, with the second on top (the usual case where you open a dialog from another).

By default, dialogs have <zorder> 1 and windows have <zorder> 0. It might be that either the Aeon fullscreeninfo dialog has <zorder> higher than 1, or that the order in which the dialogs pop up causes it to popup after the CAM dialog (assuming you're using a dialog for it!)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#50
@iolaus thanks for answer so fast
no the camera is not using https
i had all access to my hard drive i test it with frodo 12.3 ( portable) and Gotham 01/06/14 both had the same problem

Image

direct link to the screenshot
http://img9.imageshack.us/img9/7997/wptg.jpg


i just disable a lot of network settings for my camera and now im getting this error
Code:
16:24:09 T:4400  NOTICE: Previous line repeats 2 times.
16:24:09 T:4400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno socket error] timed out
                                            Traceback (most recent call last):
                                              File "C:\Users\Fernando\AppData\Roaming\XBMC\addons\script.securitycam\default.py", line 60, in <module>
                                                urllib.urlretrieve(url, __snapshot__)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 94, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 240, in retrieve
                                                fp = self.open(url, data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 208, in open
                                                return getattr(self, name)(url)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 345, in open_http
                                                h.endheaders(data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 969, in endheaders
                                                self._send_output(message_body)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 829, in _send_output
                                                self.send(msg)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 791, in send
                                                self.connect()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 772, in connect
                                                self.timeout, self.source_address)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\socket.py", line 571, in create_connection
                                                raise err
                                            IOError: [Errno socket error] timed out
                                            -->End of Python script error report<--
16:24:09 T:3456   DEBUG: ------ Window Init (DialogKaiToast.xml) ------




edit :
i edit the script to test it i change this line
url = __addon__.getSetting('url')
to this
url = ('http://192.168.1.64/cgi-bin/video.jpg')

and the screen popup with a screen from my camera but without refreshing
i does make a temp.jpg over the media folder but after a while the script jump with a error

Code:
Error Type: <type 'exceptions.IOError'>
Error Contents: (13, 'Permission denied', u'C:\\Users\\Fernando\\AppData\\Roaming\\XBMC\\addons\\script.securitycam\\resources\\media\\temp.jpg')
Traceback (most recent call last):
Reply
#51
(2014-01-09, 00:13)warlion Wrote: @iolaus thanks for answer so fast
no the camera is not using https
i had all access to my hard drive i test it with frodo 12.3 ( portable) and Gotham 01/06/14 both had the same problem

Image

direct link to the screenshot
http://img9.imageshack.us/img9/7997/wptg.jpg


i just disable a lot of network settings for my camera and now im getting this error
Code:
16:24:09 T:4400  NOTICE: Previous line repeats 2 times.
16:24:09 T:4400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: [Errno socket error] timed out
                                            Traceback (most recent call last):
                                              File "C:\Users\Fernando\AppData\Roaming\XBMC\addons\script.securitycam\default.py", line 60, in <module>
                                                urllib.urlretrieve(url, __snapshot__)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 94, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 240, in retrieve
                                                fp = self.open(url, data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 208, in open
                                                return getattr(self, name)(url)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 345, in open_http
                                                h.endheaders(data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 969, in endheaders
                                                self._send_output(message_body)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 829, in _send_output
                                                self.send(msg)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 791, in send
                                                self.connect()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 772, in connect
                                                self.timeout, self.source_address)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\socket.py", line 571, in create_connection
                                                raise err
                                            IOError: [Errno socket error] timed out
                                            -->End of Python script error report<--
16:24:09 T:3456   DEBUG: ------ Window Init (DialogKaiToast.xml) ------




edit :
i edit the script to test it i change this line
url = __addon__.getSetting('url')
to this
url = ('http://192.168.1.64/cgi-bin/video.jpg')

and the screen popup without refreshing
i does a temp.jpg over the media folder but after a while the script jump with a error

Code:
Error Type: <type 'exceptions.IOError'>
Error Contents: (13, 'Permission denied', u'C:\\Users\\Fernando\\AppData\\Roaming\\XBMC\\addons\\script.securitycam\\resources\\media\\temp.jpg')
Traceback (most recent call last):

warlion,

You seem to have a typo in the URL setting for the add-on. In your browser the IP is 192.168.1.64 but in the addon you have 192.164.1.64.

Hope it is that simple!
Reply
#52
(2014-01-08, 23:49)jmarshall Wrote: It's probably the render order of the dialogs. Each dialog has a <zorder> attribute that can be used for altering who renders on top of who. In the case where both <zorder>'s are the same, the first one open renders first, with the second on top (the usual case where you open a dialog from another).

By default, dialogs have <zorder> 1 and windows have <zorder> 0. It might be that either the Aeon fullscreeninfo dialog has <zorder> higher than 1, or that the order in which the dialogs pop up causes it to popup after the CAM dialog (assuming you're using a dialog for it!)

Is there any way to set the zorder on the WindowDialog from python?
Reply
#53
Quote:I'm not sure what the issue would be here. Not having a filename in the URL shouldn't be an issue as far as I know. Can you experiment with another image source? Any online .jpg should do.

Hi iolaus,

Taking a url with a (static) jpg the addon works fine.
Taking my motion url (e.g. http://192.168.1.1:8080) xbmc hangs, no keyboard stroke accepted, reboot required.

Info: When I use "xbmc-send --host=192.168.1.10 --action="playmedia(http://192.168.1.1:8080)"" from a linux console, the video plays perfectly (but in fullscreen).

Do you have any ideas, how to debug this effect?
Reply
#54
(2014-01-09, 01:05)iolaus Wrote: warlion,

You seem to have a typo in the URL setting for the add-on. In your browser the IP is 192.168.1.64 but in the addon you have 192.164.1.64.

Hope it is that simple!

Ohh I sorry I forget to tell you I test it with different ip , without port , without pass , user etc, etc, I try all I can think,
Reply
#55
The way mjpeg is encoded xbmc is probably seeing it as one big image and hangs waiting for it to "finish"

Do you have a URL for a single static image from the can?
Reply
#56
i dont know if this can be of any help my camera need to use activex if the browser dont had it i will not show the video feed
Reply
#57
(2014-01-09, 08:55)photon2000 Wrote:
Quote:I'm not sure what the issue would be here. Not having a filename in the URL shouldn't be an issue as far as I know. Can you experiment with another image source? Any online .jpg should do.

Hi iolaus,

Taking a url with a (static) jpg the addon works fine.
Taking my motion url (e.g. http://192.168.1.1:8080) xbmc hangs, no keyboard stroke accepted, reboot required.

Info: When I use "xbmc-send --host=192.168.1.10 --action="playmedia(http://192.168.1.1:8080)"" from a linux console, the video plays perfectly (but in fullscreen).

Do you have any ideas, how to debug this effect?

(2014-01-09, 16:05)Bstrdsmkr Wrote: The way mjpeg is encoded xbmc is probably seeing it as one big image and hangs waiting for it to "finish"

Do you have a URL for a single static image from the can?

I had the exact same thought as Bstrdsmkr, it seems likely that the mjpeg is tripping things up and causing urllib to hang while trying to download the image.
Reply
#58
(2013-12-31, 15:56)cw-kid Wrote: Not sure if this is the best / correct way but this works!

Code:
http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.securitycam"},"id":"1"}}

So I can now add this to my doorbell scene in VERA and tell it to bring up the Security CAM Overlay script on the XBMC HTPC. Big Grin

Vera Luup Code:

Code:
luup.inet.wget("http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.securitycam"},"id":"1"}}")

Excellent, just what I was looking for!
Reply
#59
(2013-12-31, 15:56)cw-kid Wrote: Not sure if this is the best / correct way but this works!

Code:
http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.securitycam"},"id":"1"}}

So I can now add this to my doorbell scene in VERA and tell it to bring up the Security CAM Overlay script on the XBMC HTPC. Big Grin

Vera Luup Code:

Code:
luup.inet.wget("http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.securitycam"},"id":"1"}}")

To tell it to send it to each xbmc, would I just add a line for each XBMC in Luup? Probably would be better as a loop based on XBMCState plugin actually I guess.
Reply
#60
OK i finally was able to make it work, i had to change my camera it seems this model is not really good for this so i try with a different one, work on frodo , over Gotham the image never refresh ,

so for someone that had this camera
vivotek IP7135 - (work on frodo only, without user and password )

@iolaus thanks for sharing this script , i find it really usefull, i will keep an eye for future updates
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 20

Logout Mark Read Team Forum Stats Members Help
Security CAM Overlay add-on1