Kodi Community Forum
Release Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release Surveillance Room - Your IP Camera Companion with extra Foscam HD Support (/showthread.php?tid=240768)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-24

(2017-07-31, 06:44)yoyoma2 Wrote: Great addon.

Is it possible to get the preview mode to use rtsp for a system that provides only rtsp access? The system can define arbitrarily low bitrate rtsp streams for previews/mobile. How can a rtsp stream only system use the addon's preview mode?

Also, if only generic IP camera mode is used with live playback on request (no alerts/notifications), is it really necessary for the addon to run a service? Changing any setting triggers a restarting service message. Just worried about consuming unnecessary resources on a weak system and wondering if the service can be turned off.
Thanks!

Currently RTSP on preview is not possible due to the way Kodi works.  Ideally I'd want that too but for now we wait until its possible.  Being able to play multiple videos at once would make the add-on design much much easier.

You're right.  I'll need to exert more energy to make it more flexible in the future to remove the need for running a service unnecessarily.  The reason it's like this is because I wrote the code to service my specific needs so that wasn't ever a use case.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-24

(2017-07-09, 17:52)scr44tch Wrote: hi,

im using

XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=1)
XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=2)

to show the overlay of my 2 cams via my keymap.

but what command would show me both overlays at the same time?

thx
 Good Question... may need to implement a feature


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-24

(2017-05-14, 09:18)xrapidx Wrote: I was hoping someone could assist - I stumbled on this app, and subsequent thread trying to find a IP camera solution for Kodi.

I can get the streams working in Kodi, and previews for two devices - but I'm struggling with one - I have a wifi doorbell, and discovered I can access the camera stream using onvif. The doorbell doesn't have a web interface, only an Android/iOS App.

The stream URL is rtsp://<IPADDRESS:554/onvif1, there is a lower quality stream on rtsp://<IPADDRESS:554/onvif2. No login details needed on either.

ONVIF Device manager identifies it as a GWellTimes-IPC

I've tried the various urls in this thread for previews, none work - is there anyway I'll be able to get previews working? (I've tried the rtsp urls above, they don't work)

I get this on port 5000
Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Fault xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
 This concept is new to me.  PM me if still interested and we can discuss.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Rascally81 - 2018-01-31

Hi.
I use RP2 for openelec 7.0.1.
I want to start all camera script automatically after booting?
Do you need autostart.sh?
If so, what and how?


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-31

(2018-01-31, 19:08)Rascally81 Wrote: Hi.
I use RP2 for openelec 7.0.1.
I want to start all camera script automatically after booting?
Do you need autostart.sh?
If so, what and how?
 Probably.  The add-on itself doesn't support this feature.  Its a good feature request though and wouldn't be that difficult to implement.   Your startup script would need to call the plugin: plugin.video.surveillanceroom?action=all_cameras likely through the JSON RPC api.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-31

(2018-01-24, 15:31)maikito26 Wrote:
(2017-05-14, 09:18)xrapidx Wrote: I was hoping someone could assist - I stumbled on this app, and subsequent thread trying to find a IP camera solution for Kodi.

I can get the streams working in Kodi, and previews for two devices - but I'm struggling with one - I have a wifi doorbell, and discovered I can access the camera stream using onvif. The doorbell doesn't have a web interface, only an Android/iOS App.

The stream URL is rtsp://<IPADDRESS:554/onvif1, there is a lower quality stream on rtsp://<IPADDRESS:554/onvif2. No login details needed on either.

ONVIF Device manager identifies it as a GWellTimes-IPC

I've tried the various urls in this thread for previews, none work - is there anyway I'll be able to get previews working? (I've tried the rtsp urls above, they don't work)

I get this on port 5000
Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Fault xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
 This concept is new to me.  PM me if still interested and we can discuss. 

Previews won't work btw with RTSP URLS because of current Kodi limitations.  Sometime in a future version I hope to be able to provide this.  

You'll need either an MJPEG URL or Snapshot URL to get previews to function.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Rascally81 - 2018-01-31

I do not know how to implement it!
Can you do me to do autostart.sh?


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-01-31

I cannot.  Windows user...


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Rascally81 - 2018-02-01

(2018-01-31, 22:21)maikito26 Wrote: I cannot.  Windows user...
 Thanks! In the meantime, I managed to solve it


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-02-01

(2018-02-01, 09:20)Rascally81 Wrote:
(2018-01-31, 22:21)maikito26 Wrote: I cannot.  Windows user...
 Thanks! In the meantime, I managed to solve it 
Great!  Feel free to post your solution here in case others are looking for the same assistance Smile


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Rascally81 - 2018-02-01

(2018-02-01, 16:35)maikito26 Wrote:
(2018-02-01, 09:20)Rascally81 Wrote:
(2018-01-31, 22:21)maikito26 Wrote: I cannot.  Windows user...
 Thanks! In the meantime, I managed to solve it   
Great!  Feel free to post your solution here in case others are looking for the same assistance Smile  
Create an autoexec.py file with a text editor (Notepad ++)
This is the command:

import xbmc
xbmc.executebuiltin('RunPlugin(plugin://plugin.video.surveillanceroom?action=all_cameras)')

Copy to the Storage /.Kodi/userdata directory
Restart Smile


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - Greg-Mega - 2018-02-10

Made a minor modification to this script last night to support 6 cameras in "All Camera" mode. Thought I would share it in case anyone wants 6 cameras in their preview.

Screenshothttps://imgur.com/a/SvzVG

The changes I made to the code are all in the plugin.videosureillanceroom\resources\lib\allcameraplayer.py which i have uploaded here: 

https://www.dropbox.com/s/rgdzr0qrgy3y7fk/allcameraplayer.py?dl=0

Only 3 changes were required to the code above:
  • Adjusting the coords array for the different layout and including the coords for the two addition cameras (line 56).
  • Adjusting the animations array to define WindowOpen and WindowClose animations for the two additional cameras (line 67).
  • Adjusting the loop to loop through 6 cameras instead of 4 (line 87).

There are still a couple of things I'll do eventually to neaten this up:
  • Fix the animations array so they animate in and out correctly, at the moment the positioning is still for the 4 camera layout so they do some interesting things when they animate in and out but to be honest I'm likely to ditch the animation all together because it's a bit lame.
  • The layout is one pixel off width wise, I can only tell when i remotely access my Kodi box on the TV i can't tell. It's off because 1280 / 3 = 426.6666666667px and I used 426px so it could be fixed by making a couple of the cameras 1px wider.

But I need to mount my two new cameras as they're pointing at the ceiling in the garage at the moment so that's priority over fixing up the above.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-02-10

(2018-02-10, 05:30)Greg-Mega Wrote: Made a minor modification to this script last night to support 6 cameras in "All Camera" mode. Thought I would share it in case anyone wants 6 cameras in their preview.

Screenshothttps://imgur.com/a/SvzVG

The changes I made to the code are all in the plugin.videosureillanceroom\resources\lib\allcameraplayer.py which i have uploaded here: 

https://www.dropbox.com/s/rgdzr0qrgy3y7fk/allcameraplayer.py?dl=0

Only 3 changes were required to the code above:
  • Adjusting the coords array for the different layout and including the coords for the two addition cameras (line 56).
  • Adjusting the animations array to define WindowOpen and WindowClose animations for the two additional cameras (line 67).
  • Adjusting the loop to loop through 6 cameras instead of 4 (line 87).

There are still a couple of things I'll do eventually to neaten this up:
  • Fix the animations array so they animate in and out correctly, at the moment the positioning is still for the 4 camera layout so they do some interesting things when they animate in and out but to be honest I'm likely to ditch the animation all together because it's a bit lame.
  • The layout is one pixel off width wise, I can only tell when i remotely access my Kodi box on the TV i can't tell. It's off because 1280 / 3 = 426.6666666667px and I used 426px so it could be fixed by making a couple of the cameras 1px wider.
 Sweet.  Nice Work dude.


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - LupinSansei - 2018-02-22

I have one of these camera DVRs  Floureon DVR and I use an app on my phone called Xmeye to view my cameras. Is there anyway this can work with your add-on?


RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - maikito26 - 2018-02-22

(2018-02-22, 01:21)LupinSansei Wrote: I have one of these camera DVRs  Floureon DVR and I use an app on my phone called Xmeye to view my cameras. Is there anyway this can work with your add-on?
 I looked through the User Manual for the Floureon DVR.  The only compatible protocol is the RTSP function.  In this case you're better off just configuring a stream file for kodi to play unfortunately as you won't be able to use any of the image overlay options.   You might contact the OEM to see if there are any hidden functions for mjpeg or snapshot to access over HTTP.  Sorry about that!