homebridge-hikvision-dvr 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.1
4
+
5
+ - The plugin's settings page in the Homebridge UI shows an **Open web console** button and the console's address, instead of trying to embed the console (the DVR's pages don't work well inside the Homebridge UI, which also blocks their dialogs).
6
+ - The address text is readable in the dark theme.
7
+
3
8
  ## 1.2.0
4
9
 
5
10
  **Web console** (off by default): the DVR's own web page served through Homebridge, with a stand-in for Hikvision's obsolete browser plugin, so live view, playback and motion-area drawing work in Safari and Chrome.
6
11
 
7
- - Open it at `http://<homebridge-ip>:8100/` or from the plugin's settings screen in the Homebridge UI, which shows it embedded.
12
+ - Open it at `http://<homebridge-ip>:8100/` or with the **Open web console** button on the plugin's settings screen in the Homebridge UI.
8
13
  - Live view (up to 4 video windows at once per tab), snapshots, clip recording, digital zoom, full screen. Multi-window views use the DVR's sub stream; an enlarged window switches to the main stream.
9
14
  - Playback with pause, 1/4x to 4x speed (smooth in Safari too) and the timeline, whose clock matches the time burnt into the picture. Normal cursors instead of the DVR's garbled ones. The DVR allows one playback at a time; a second one says so in its window.
10
15
  - Saved clips and snapshots download to your browser's Downloads folder.
package/README.md CHANGED
@@ -63,8 +63,7 @@ To turn it on, open the plugin settings, expand **Web console**, tick **Web cons
63
63
  save and restart Homebridge. You can then open it two ways:
64
64
 
65
65
  - **In its own tab:** go to `http://<homebridge-ip>:8100/`.
66
- - **In the Homebridge UI:** the plugin's settings screen shows an **Open web console** button and the console embedded below it. If you
67
- reach the Homebridge UI over HTTPS the browser won't embed a plain HTTP page, so only the button is shown.
66
+ - **From the Homebridge UI:** the plugin's settings screen has an **Open web console** button.
68
67
 
69
68
  Log in with your DVR username and password as usual, or tick **Web console: log in automatically** to skip the login page.
70
69
  With it on, anyone on your home network who opens the console is logged in to the DVR as the plugin's account (usually `admin`),
@@ -3,8 +3,7 @@
3
3
  <strong>Web console</strong>
4
4
  <a id="open" class="btn btn-primary btn-sm" href="#" target="_blank" rel="noopener">Open web console</a>
5
5
  </div>
6
- <p id="note" class="text-muted small mt-2 mb-0"></p>
7
- <iframe id="frame" title="DVR web console" class="mt-3 w-100 border rounded" style="height:640px;display:none"></iframe>
6
+ <p id="note" class="small mt-2 mb-0" style="opacity:.7;word-break:break-all"></p>
8
7
  </div>
9
8
 
10
9
  <script>
@@ -22,14 +21,7 @@
22
21
  // The console is plain HTTP on the Homebridge host, so build the URL from where this page was loaded.
23
22
  const url = `http://${window.location.hostname}:${info.port}/`;
24
23
  document.getElementById('open').href = url;
25
- if (window.location.protocol === 'https:') {
26
- note.textContent = 'The Homebridge UI is on HTTPS, so the browser blocks embedding the plain HTTP console here. Use the button to open it in its own tab.';
27
- } else {
28
- note.textContent = url;
29
- const frame = document.getElementById('frame');
30
- frame.src = url;
31
- frame.style.display = '';
32
- }
24
+ note.textContent = url;
33
25
  }
34
26
  } catch (e) {
35
27
  // No console section if the server side isn't reachable; the settings form still works.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-hikvision-dvr",
3
3
  "displayName": "Hikvision DVR / NVR Cameras",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "description": "Hikvision, HiLook and other Hik-based DVR/NVR cameras in HomeKit, with automatic camera discovery and support for encrypted (Hik-Connect / HiLook) streams.",
6
6
  "main": "index.js",
7
7
  "license": "MIT",