Projets-2016-2017-UPnP Cameras integration into OpenHAB: Difference between revisions

From air
Jump to navigation Jump to search
(Page creation)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
= Calendar =
= Calendar =


Start of the project : January 9th, 2017.
* Start of the project : January 9th, 2017.

= Git repository =

[https://github.com/lawchris/openhab2-addons/tree/upnp-camera-binding repository with UPnP Camera binding]


== Week 1 (January 9th - January 15th) ==
== Week 1 (January 9th - January 15th) ==

* Project choice: UPnP Cameras integration into OpenHAB
* Read resources from last year project: [http://air.imag.fr/index.php/Proj-Openhab-2016 UPnP camera detection]
* Understand what is UPnP: [https://en.wikipedia.org/wiki/Universal_Plug_and_Play Universal Plug and Play]
* Retrieve cameras from the lab for the project

== Week 2 (January 16th - January 22nd) ==

* [http://docs.openhab.org/installation/index.html Installation] of OpenHAB2
* Read documentation on OpenHAB2 and binding implementation
* Read documentation on Eclipse SmartHome: [http://www.eclipse.org/smarthome/documentation/development/bindings/how-to.html implementing a Binding], [http://www.eclipse.org/smarthome/documentation/development/bindings/discovery-services.html implementing a discovery service]
* Meet team from last year project

== Week 3 (January 23th - January 29th) ==

* Installation of [https://kodi.tv/ Kodi] and [http://felix.apache.org/ Apache Felix]
* First try of UPnP protocol
* Connect cameras to local network: D-Link cameras can only be configured with a computer running on Windows or Mac and not Linux because of the software provided by D-Link. However, there is still a solution for Linux user by using [https://www.winehq.org/documentation wine].
* Cameras used in the project have to be configured with the following software:
DCS-5222L: (A version): [http://d2okd4tdjucp2n.cloudfront.net/DCS-5211L_5222L/autorun.exe Windows user] and [http://d2okd4tdjucp2n.cloudfront.net/DCS-5211L_5222L/DCS-5222L_A1_SetupWizard_v1.04.07.dmg Mac user]
DCS-932L: (A version): [http://d2okd4tdjucp2n.cloudfront.net/DCS-932L/autorun.exe Windows user] and [http://d2okd4tdjucp2n.cloudfront.net/DCS-932L/DCS-932L_A1_SetupWizard_v1.04.10.dmg Mac user]
The network must allow multicast.
An Ethernet cable is needed for the first steps of the configuration.
Reset cameras when using them for the first time in order to set a password.
* Detection of other devices through UPnP with Felix and Kodi: [https://github.com/openHab-UPnP/UpnpCommands repository]

== Week 4 (January 30th - February 5th) ==

* Using openHAB2 through the Karaf console can be time consuming with the exportation of bindings and find the different commands to install and activate them. Therefore, we decided to install and run openHAB from Eclipse IDE.
* [http://docs.openhab.org/developers/development/ide.html Set up of Eclipse IDE] for Eclipse SmartHome developments and openHAB2 addons

== Week 5 (February 6th - February 12th) ==

* Installation of UPnP binding in OpenHAB
* Detection of camera through OpenHAB interface with UPnP protocol
* modification of [http://docs.openhab.org/configuration/sitemaps.html sitemaps] in openHAB

== Week 6 (February 13th - February 19th) ==

* Retrieve documentations of our cameras, the different queries to control our cameras and retrieve information
* [http://www.ghafoor.org/forums/topic/ip-camera-d-link-dcs-5222l/ Commands to control D-link camera DCS-5222L]
* [http://gurau-audibert.hd.free.fr/josdblog/wp-content/uploads/2013/09/CGI_2121.pdf Some commands to retrieve data from cameras] This documentation is not specific to the cameras we have, thus several commands does not work
* Read documentations on how to contribute to openHAB
* Start of a clean creation of UPnP camera discovery binding in order to make a pull request to openHAB
* [https://github.com/openhab/openhab2-addons GitHub repository of openHAB2 addons]
* [http://docs.openhab.org/developers/contributing/contributing.html Contributing to the Development of openHAB - official documentation]
* [http://docs.openhab.org/developers/development/bindings.html Developing a Binding for openHAB2 - official documentation]
* [https://www.youtube.com/watch?v=30nhm0yIcvA&feature=youtu.be Getting started with Binding Development - Youtube video]
* Find documentations on motion tracking

== Week 7 (February 20th - February 26th) ==

------------------------------------------

== Week 8 (February 27th - March 5nd) ==

* Continue the clean creation of the binding
* [http://docs.openhab.org/developers/development/guidelines.html Coding guidelines]
* Fix errors and typos on the binding
* Find documentations on motion tracking

== Week 9 (March 6th - March 12th) ==

* Creation of a new branch upnpcamera.
* Started implementation of motion detection with openCV and Java. Some problems with the installation of openCV.


== Week 10 (March 13th - March 19th) ==


* Improved motion detection algorithm.
* Implementation of the new binding.


== Week 11 (March 20th - March 26th) ==

* Matched motion detection with camera tracking.
* Modification on the new binding.
* Made tests to control camera and motion detection.

== Week 12 (March 27th - April 2nd) ==

* New branch created to fit the new binding name DlinkUpnpCamera
* Started pull request: [https://github.com/openhab/openhab2-addons/pull/2111 Pull request link]
* Wrote report and presentation slides

Latest revision as of 09:33, 3 April 2017

Team

  • Supervisor: Didier Donsez
  • Members: Antoine Blanc, Christopher Law

Calendar

  • Start of the project : January 9th, 2017.

Git repository

 repository with UPnP Camera binding

Week 1 (January 9th - January 15th)

Week 2 (January 16th - January 22nd)

Week 3 (January 23th - January 29th)

  • Installation of Kodi and Apache Felix
  • First try of UPnP protocol
  • Connect cameras to local network: D-Link cameras can only be configured with a computer running on Windows or Mac and not Linux because of the software provided by D-Link. However, there is still a solution for Linux user by using wine.
  • Cameras used in the project have to be configured with the following software:
 DCS-5222L: (A version): Windows user and Mac user
 DCS-932L: (A version): Windows user and Mac user

 The network must allow multicast.
 An Ethernet cable is needed for the first steps of the configuration.
 Reset cameras when using them for the first time in order to set a password.
  • Detection of other devices through UPnP with Felix and Kodi: repository

Week 4 (January 30th - February 5th)

  • Using openHAB2 through the Karaf console can be time consuming with the exportation of bindings and find the different commands to install and activate them. Therefore, we decided to install and run openHAB from Eclipse IDE.
  • Set up of Eclipse IDE for Eclipse SmartHome developments and openHAB2 addons

Week 5 (February 6th - February 12th)

  • Installation of UPnP binding in OpenHAB
  • Detection of camera through OpenHAB interface with UPnP protocol
  • modification of sitemaps in openHAB

Week 6 (February 13th - February 19th)

Week 7 (February 20th - February 26th)


Week 8 (February 27th - March 5nd)

  • Continue the clean creation of the binding
  • Coding guidelines
  • Fix errors and typos on the binding
  • Find documentations on motion tracking

Week 9 (March 6th - March 12th)

  • Creation of a new branch upnpcamera.
  • Started implementation of motion detection with openCV and Java. Some problems with the installation of openCV.


Week 10 (March 13th - March 19th)

  • Improved motion detection algorithm.
  • Implementation of the new binding.


Week 11 (March 20th - March 26th)

  • Matched motion detection with camera tracking.
  • Modification on the new binding.
  • Made tests to control camera and motion detection.

Week 12 (March 27th - April 2nd)

  • New branch created to fit the new binding name DlinkUpnpCamera
  • Started pull request: Pull request link
  • Wrote report and presentation slides