For anyone out there who uses ZoneMinder, I've created an addon that allows you to connect to a ZoneMinder server and view camera feeds. The addon is in the official repository, so anyone using Dharma should be able to grab it from within XBMC.
I'd be interested in anyone who ends up trying out this addon, especially if you're using hashed authentication. It seemed to work okay when I tested it, but I'd love to have independent confirmation that all's well.
I may release a new version soon, with the option to specify an IP address for the hash. This would be useful for people who have ticked the option in ZoneMinder to include the IP in the calculated hash for authentication, but are going through a proxy or some other fanangled networking which causes the IP that ZoneMinder sees to be different to the IP of the box XBMC is running on.
I also have a script for more generic streams, which I've been using with VLC on Linux. I've created a VLM config file for VLC which allows me to create streams from multiple webcams attached to a PC, and additionally create a "mosaic" of all the webcams in one HD stream. Once I'm happy that the script and the VLC solution are working okay (VLC currently seems to use a lot of CPU transcoding the streams, and I'd like to look into minimising this) I'll probably release the script and add a tutorial for VLC on this forum.
markhoney
Senior Member Posts: 133 Joined: Oct 2003 Reputation: 1 Location: Wellington, New Zealand |
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB. |
| find quote |
Therms
Senior Member Posts: 120 Joined: Dec 2008 Reputation: 0 |
2010-12-04 00:00
Post: #2
markhoney Wrote:For anyone out there who uses ZoneMinder, I've created an addon that allows you to connect to a ZoneMinder server and view camera feeds. The addon is in the official repository, so anyone using Dharma should be able to grab it from within XBMC. I haven't had a chance to test this yet as I haven't got ZM set up yet, but I'll definitely give you some feedback when I get it done. |
| find quote |
philw
Junior Member Posts: 1 Joined: Dec 2010 Reputation: 0 |
2010-12-20 01:32
Post: #3
Hi Mark
Great idea for XBMC add on tried it on my setup and getting the message 'Warning No Camera Found' i can access zm from http://servername/zm usual and have setup user pass etc without hashed auth. any ideas? running version 1.23.3 of zm cheers |
| find quote |
jrusi
Junior Member Posts: 1 Joined: Nov 2010 Reputation: 0 |
2010-12-23 17:16
Post: #4
Hi, it is a great idea!
I'm using jpegs to view the picture from cameras instead of mpeg. I can start the plugin and I can see thumbnails but when select any camera I get: Quote:09:14:00 T:3078018928 M:1530134528 NOTICE: Parsing ASX mpeg cannot be found because there is no mpeg stream, only jpeg. Any idea how to fix it without changing in ZM from jpeg to mpeg? |
| find quote |
Targettio
Senior Member Posts: 160 Joined: Aug 2010 Reputation: 0 |
2011-01-25 14:44
Post: #5
Hi, great idea for a script.
I don't know much about Zoneminder, but it would be cool if you could make it so when my doorbell rings (or any motion detected at my front door cam) the video I am watching pauses and a popup showing the front door cam stream, like this thread. |
| find quote |
aivs
Junior Member Posts: 23 Joined: Mar 2011 Reputation: 0 |
2011-03-23 12:35
Post: #6
i can' t start ZoneMinder plugin from XMBC
it's log Code: 10:34:00 T:2901285744 M:2905022464 NOTICE: -->Python Interpreter Initialized<-- |
| find quote |
markhoney
Senior Member Posts: 133 Joined: Oct 2003 Reputation: 1 Location: Wellington, New Zealand |
2011-03-23 12:57
Post: #7
aivs, it looks like you may be going through a proxy:
Error Contents: HTTP Error 407: Proxy Authentication Required If this isn't the case, it may be ZoneMinder authentication that's causing this. What auth method have you setup in ZoneMinder? Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB. |
| find quote |
aivs
Junior Member Posts: 23 Joined: Mar 2011 Reputation: 0 |
2011-03-23 13:44
Post: #8
markhoney Wrote:aivs, it looks like you may be going through a proxy: I have asked the admin to switch off proxy for me. Can this plugin work with out internet connection ? |
| find quote |
markhoney
Senior Member Posts: 133 Joined: Oct 2003 Reputation: 1 Location: Wellington, New Zealand |
2011-03-23 13:47
Post: #9
If ZoneMinder is running on the same box as XBMC, you can connect without an internet connection by using the loopback IP address, 127.0.0.1.
Obviously, if the Zoneminder service is running on another machine, the XBMC machine needs to talk to it over the network! Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB. |
| find quote |
aivs
Junior Member Posts: 23 Joined: Mar 2011 Reputation: 0 |
2011-03-23 16:58
Post: #10
Admin switch off proxy, and now in ~.xbmc/temp/XBMC.log
00:44:46 T:2905127792 M:3180322816 NOTICE: -->Python Interpreter Initialized<-- 00:44:46 T:2905127792 M:3180322816 NOTICE: Grabbing URL: http://zoneminder/zm/?skin=classic 00:44:46 T:2905127792 M:3180322816 NOTICE: Requesting page: http://zoneminder/zm/?skin=classic 00:44:46 T:2905127792 M:3180322816 ERROR: Error Type: urllib2.URLError 00:44:46 T:2905127792 M:3180322816 ERROR: Error Contents: <urlopen error (-2, 'Name or service not known')> 00:44:46 T:2905127792 M:3180322816 ERROR: Traceback (most recent call last): File "/home/aivs/.xbmc/addons/plugin.video.zoneminder/default.py", line 170, in ? listcameras() File "/home/aivs/.xbmc/addons/plugin.video.zoneminder/default.py", line 147, in listcameras doc = gethtmlpage(url) File "/home/aivs/.xbmc/addons/plugin.video.zoneminder/default.py", line 47, in gethtmlpage response = urllib2.urlopen(req) File "../Python/Lib/urllib2.py", line 130, in urlopen return _opener.open(url, data) File "../Python/Lib/urllib2.py", line 358, in open response = self._open(req, data) File "../Python/Lib/urllib2.py", line 376, in _open '_open', req) File "../Python/Lib/urllib2.py", line 337, in _call_chain result = func(*args) File "../Python/Lib/urllib2.py", line 1021, in http_open return self.do_open(httplib.HTTPConnection, req) File "../Python/Lib/urllib2.py", line 996, in do_open raise URLError(err) URLError: <urlopen error (-2, 'Name or service not known')> 00:44:46 T:3021739904 M:3180322816 ERROR: GetDirectory - Error getting plugin://plugin.video.zoneminder/ 00:44:46 T:3021739904 M:3180322816 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.zoneminder/) failed 00:44:46 T:3021739904 M:3180322816 WARNING: GetLabel - Unknown nodetype requested 0 When i disconnectet, i can't open all plugins. XBMC-->Videos-->Video Add-ons-->Remote share Network is not connected |
| find quote |

Search
Help