2 | | |
3 | | This plugin adds support for pan, tilt, and presets for VistaCam PT and VistaCam HD cameras. It also adds support for motion detection for VistaCam PT. |
4 | | |
5 | | == Cameras compatible with this plugin == |
6 | | |
7 | | * Non-H.264 Foscam cameras |
8 | | * Non-H.264 Apexis cameras |
9 | | * Non-H.264 Wintop cameras |
10 | | |
11 | | === '''Notes''' === |
12 | | 1. The ''Zoom Out'' button does '''vertical patrol''', and the ''Zoom In'' button does '''horizontal patrol'''. |
13 | | |
14 | | 2. Presets are supported starting with MiOS firmware version 1.5.390. |
15 | | |
16 | | == Installation == |
17 | | |
18 | | === UI5 === |
19 | | 1. Go to ''Apps'' >> ''Install Apps'' and install the plugin. Alternatively, you can install it from http://apps.mios.com. |
20 | | 2. In the camera's ''Advanced'' tab enter ''I_VistaCamPT.xml'' in the '''impl_file''' field. |
21 | | 3. Save. |
22 | | 4. '''Motion detection is disabled by default'''. To enable it open the ''Advanced'' tab of the camera device and scroll down to the ''State'' field. ''0'' means that it's disabled. To enable it set it to ''1''. |
23 | | |
24 | | === UI4 === |
25 | | 1. Download these files: |
26 | | * [http://code.mios.com/trac/mios_foscam-camera/export/17/tags/2.5/I_FoscamPTZ.xml I_FoscamPTZ.xml] |
27 | | * [http://code.mios.com/trac/mios_foscam-camera/raw-attachment/wiki/WikiStart/D_DigitalSecurityCamera1.xml D_DigitalSecurityCamera1.xml] |
28 | | 2. Upload both files on Vera: |
29 | | * On the Vera UI, in the ''Toolbox'' section, open ''MiOS Developers'' >> ''Luup Files''. |
30 | | * Upload the files. |
31 | | * Uncheck ''Restart Luup after upload''. |
32 | | * Click ''GO''. |
33 | | 3. Set the camera to use the I_FoscamPTZ.xml file as the implementation file: |
34 | | * On the Vera UI open the camera's control panel (click on the wrench). |
35 | | * On the ''Advanced'' tab, in the ''impl_file'' field enter ''I_FoscamPTZ.xml'' |
36 | | * Close the control panel. |
37 | | 4. Save. |
38 | | 5. '''Motion detection is disabled by default'''. To enable it open the ''Advanced'' tab of the camera device and scroll down to the ''State'' field. ''-1'' means that it's disabled. To enable it set it to ''0''. |
39 | | |
40 | | == Setting up motion detection == |
41 | | |
42 | | The plugin needs to know a couple of things to setup motion detection: |
43 | | 1. The camera's IP address and port or URL (e.g. ''192.168.81.123:8001'' or ''camera.myserver.com'') |
44 | | 2. The camera's username and password |
45 | | 3. The Vera IP address or URL (e.g. ''192.168.81.1'' or ''vera.myserver.com'') |
46 | | |
47 | | The plugin will attempt to find the Vera's IP address automatically based on the camera's IP address. This attempt will be successful only if the camera is on the same network as Vera. In all other cases the Vera's IP address (or URL) must be specified by the user. |
63 | | == Configurable parameters == |
64 | | |
65 | | * These parameters can be modified in the '''camera''''s control panel, in the ''Advanced'' tab: |
66 | | ||'''!StepSize'''||How much the camera will rotate when you send a ''pan'' or ''tilt'' command. Must be a natural number greater than 0.|| |
67 | | ||'''!ReverseControls'''||When this parameter is ''1'' the camera controls will be reversed. Useful when you have the camera upside down. Can be ''0'' or ''1''.|| |
68 | | ||'''!GatewayAddress'''||Enter here the IP address or URL of the Vera.|| |
69 | | [[Image(camera_params.png)]] |
70 | | ---- |
71 | | * These parameters can be modified in the '''motion sensor''''s control panel, in the ''Advanced'' tab: |
72 | | ||'''!OnTime'''||The number of seconds the plugin hasn't received any notification from the camera after which the device will become ''Untripped''. The default is 1200 seconds (20 minutes).|| |
73 | | ||'''embedded'''||By default this checkbox is ''checked'', which means that moving the camera to a different room will also move the motion sensor, so the motion sensor will always be in the same room as the camera. To prevent this from happening uncheck this checkbox and save.|| |
74 | | [[Image(sensor_params.png)]] |
75 | | |
76 | | == Getting presets support in post 1.5.390 firmwares == |
77 | | |
78 | | All the camera devices created in pre 1.5.390 firmwares use the device file ''D_DigitalSecurityCamera1.xml'', which doesn't support presets. In firmware 1.5.390 another device file for the camera has been added: ''D_DigitalSecurityCamera2.xml''. To set your camera to use this device file instead of the old one: |
79 | | 1. Open the camera's control panel, ''Advanced'' tab. |
80 | | 2. Find the ''device_file'' field and change it from ''D_DigitalSecurityCamera'''1'''.xml'' to ''D_DigitalSecurityCamera'''2'''.xml''. |
81 | | 3. Save. |
82 | | |
83 | | {{{ |
84 | | #!html |
85 | | <p style="font-weight:bold; color:red"> |
86 | | WARNING: Do not change the device file for the camera if your MiOS firmware version is older than 1.5.390! |
87 | | </p> |
88 | | }}} |
89 | | |
90 | | If everything worked OK, the Camera control tab should look like this (the number of preset buttons may vary from firmware to firmware): |
91 | | |
92 | | [[Image(camera_control.png)]] |
| 17 | || '''Feature''' || '''Compatible cameras''' || |
| 18 | || Pan & Tilt || All cameras || |
| 19 | || Presets || All except Foscam 9821W || |
| 20 | || Motion detection || VistaCam PT, Foscam FI8918W, Apexis APM-J011-WS || |