Code Monkey home page Code Monkey logo

plugin.video.surveillanceroom's Introduction

plugin.video.surveillanceroom

a Kodi add-on by Maikito26

-- Summary --

If motion or sound is detected a small image preview will slide onto the screen. Pressing select will stop any playing media and open the main video feed with basic controls for pan/tilt and mirror/flip. Exit with the back button or click the close control, and the previously playing file will resume. This works for up to 4 cameras simultaneously Also, there is a menu to select these cameras individually or all of them to play at once.

-- Features --

  • Connect up to 4 IP/Foscam Cameras
  • Supports credentials for Foscam, but you can overwrite the URL manually to support non-Foscam cameras, or the C model which has RTSP port hard coded to 554.
  • Watch in multiple streaming formats, with camera controls displayed overtop of a single camera view.
  • Preview cameras while watching content, with Motion and Sound Detection, or by calling it manually using RunPlugin()
  • Open the camera stream from a preview, and will resume what you were watching when you close the stream.
  • Logic to determine when preview is allowed to display. Configure which windows not to display for.
  • Set a home location to move PTZ enabled Foscam cameras to when Kodi starts

-- Quick Start Guide --

  1. Install the Kodi Add-on
  2. Open the add-on settings
  3. Configure the camera specific settings (additional configure preview settings if desired)
  4. Enable the camera that is configured
  5. Access the add-on through the Programs or Video add-on windows and view cameras

-- Calling commands from an External Source -- You can call any action available in default.py and encoding it into the URL with the parameters: action= camera_number=

Some example actions are:

  1. Showing a single preview window

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

  2. Showing all cameras on fullscreen

    XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=all_cameras)

  3. Showing a single camera on fullscreen, with controls

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

  4. Showing a single camera on fullscreen, without controls

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

Mapping a remote button example:

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

This add-on was developed in the following environment:

  • Windows 10
  • Kodi 15.2
  • Foscam HD Camers: F19831w & F19804p, with firmware v2.11.1.118
  • D-Link DCS-932L generic IP camera

Credit and thanks to the following add-ons/developers for inspiration and a lot of the groundwork:

plugin.video.surveillanceroom's People

Contributors

allanmar avatar maikito26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin.video.surveillanceroom's Issues

How to add a generic ip camera?

I'm hoping to add a Reolink IP camera using the rtsp protocol. In the OSMC Surveillance Room addon settings section for the cameras the host, user, and password are all grayed out. The readme mentions overwriting the url manually to support non-Foscam cameras, which file do I need to edit please? Is it /resources/settings.xml? (I couldn't see port 554 listed).

Doesn't back to movie after camera preview

Hello. Great addon!

Is it normal that I see transparent menu screen with movie playing on background after camera preview action, instead of return to movie playing on foreground? Settings doesn't help me with this issue.

Preview is not working using RTSP protocal as a generic IP CAM

Hi maikito26,

First of all, thanks for your effort for the great add-on.
I can successfully configure to watch my IP cam in full stream each a time.
But I can not set the preview function working for my four cam's preview in one screem.
It is possible to make "preview function" working for my hikversion IP cam working?

thanks again

Impossible to add a generic camera with auth

Hi,

I'm very interested in using surveillanceroom. I love the idea !
I have a D-LINK DCS-933L with auth and I can't figure how to access the stream : when I select "generic IP camera", the username/password is disabled.
Is it possible to use a generic camera with auth ?

Thanks !

No snapshot or MPJEG with modern camera's which using digest authentication

Hi,

With newer camera's there is no way to enable basic authentication and they user digest authentication. So when i choose a general camera I can't pass user and password successfully in a snapshot URL. I bash I can solve this with the following code:

curl --user "user:pass" "http://192.168.1.108/cgi-bin/snapshot.cgi?1" --digest -o "\var\tmp\snapshot.jpg" -s

But i've no idea how to modify this in your python addon. Can you help me further to modify this or how to do this otherwise?

Attribute Error thrown when using Foscam HD - Override for C1

Error

Type: <type 'exceptions.AttributeError'>
Error Contents: 'super' object has no attribute 'init'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.surveillanceroom/default.py", line 272, in
main_menu()
File "/storage/.kodi/addons/plugin.video.surveillanceroom/default.py", line 193, in main_menu
camera = Camera(camera_number)
File "/storage/.kodi/addons/plugin.video.surveillanceroom/resources/lib/ipcam_api_wrapper.py", line 38, in init
self.camera = ipcam_api_foscamhd.FoscamCameraOverride(camera_settings, daemon, verbose)
File "/storage/.kodi/addons/plugin.video.surveillanceroom/resources/lib/ipcam_api_foscamhd.py", line 808, in init
super(FoscamCamera, self).init(camera_settings, daemon = False, verbose = True)
AttributeError: 'super' object has no attribute 'init

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.