homebridge-windy-camera 1.0.4 → 1.0.6
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/README.md +38 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -43,18 +43,21 @@ Add a platform block to your Homebridge `config.json`:
|
|
|
43
43
|
{
|
|
44
44
|
"platform": "WindyCamera",
|
|
45
45
|
"name": "מכ״ם גשם",
|
|
46
|
-
"
|
|
47
|
-
"lon": 34.9351,
|
|
46
|
+
"city": "כפר יונה",
|
|
48
47
|
"width": 1300,
|
|
49
48
|
"height": 900,
|
|
50
49
|
"captureIntervalMs": 120000
|
|
51
50
|
}
|
|
52
51
|
```
|
|
53
52
|
|
|
53
|
+
בחר עיר מתוך רשימה נפתחת ב-Homebridge Config UI — הקואורדינטות שלה ימולאו אוטומטית.
|
|
54
|
+
אם העיר שלך לא ברשימה, בחר באפשרות "מותאם אישית (הזן קווים ידנית)" ומלא ידנית `lat`/`lon`.
|
|
55
|
+
|
|
54
56
|
| Option | Default | Description |
|
|
55
|
-
|
|
57
|
+
|---------------------|-----------------------|------------------------------------------------------------|
|
|
56
58
|
| `name` | `מכ״ם גשם` | Camera name shown in HomeKit / used to match the entry. |
|
|
57
|
-
| `
|
|
59
|
+
| `city` | `כפר יונה` | City picked from a dropdown list. Sets `lat`/`lon` automatically. |
|
|
60
|
+
| `lat` / `lon` | (from city) | Only used when `city` is set to "Custom". |
|
|
58
61
|
| `width` / `height` | 1300 / 900 | Screenshot resolution. |
|
|
59
62
|
| `captureIntervalMs` | 120000 (2 minutes) | How often to refresh the radar image. |
|
|
60
63
|
| `chromiumPath` | `/usr/bin/chromium` | Path to the system Chromium binary. |
|
|
@@ -66,3 +69,34 @@ only job is to (a) keep a radar screenshot fresh on disk and (b) make
|
|
|
66
69
|
sure `homebridge-camera-ui` has a `videoConfig` entry pointing at that
|
|
67
70
|
image. The actual HomeKit camera protocol is entirely handled by
|
|
68
71
|
`homebridge-camera-ui`.
|
|
72
|
+
|
|
73
|
+
## Setting up the camera in homebridge-camera-ui
|
|
74
|
+
|
|
75
|
+
No manual configuration is needed inside `homebridge-camera-ui` — this
|
|
76
|
+
plugin creates the camera entry for you automatically the first time
|
|
77
|
+
Homebridge starts.
|
|
78
|
+
|
|
79
|
+
To check it worked:
|
|
80
|
+
|
|
81
|
+
1. Open the Homebridge Config UI and go to the **Camera UI** plugin's
|
|
82
|
+
settings (or open the camera-ui web interface directly).
|
|
83
|
+
2. Look for a camera named like the `name` you set above (default:
|
|
84
|
+
`מכ״ם גשם`).
|
|
85
|
+
3. The camera should already have a live image. If it looks frozen or
|
|
86
|
+
blank, wait up to one `captureIntervalMs` interval (2 minutes by
|
|
87
|
+
default) for the first screenshot to be taken.
|
|
88
|
+
|
|
89
|
+
If the camera doesn't appear at all:
|
|
90
|
+
|
|
91
|
+
- Make sure `homebridge-camera-ui` is installed and has been started
|
|
92
|
+
at least once.
|
|
93
|
+
- Restart Homebridge. The camera entry is created by a `prestart`
|
|
94
|
+
hook that runs every time Homebridge starts, so a restart will
|
|
95
|
+
recreate it if it's missing (for example after a partial backup
|
|
96
|
+
restore).
|
|
97
|
+
- Check the Homebridge logs for errors from `WindyCamera` or
|
|
98
|
+
`inject-camera.py`.
|
|
99
|
+
|
|
100
|
+
Once the camera entry exists, it also appears automatically in the
|
|
101
|
+
Apple Home app (via `homebridge-camera-ui`'s own HomeKit bridge) — no
|
|
102
|
+
separate step is needed there either.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-windy-camera",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Captures a live Windy.com radar map screenshot and keeps it registered as a camera inside homebridge-camera-ui",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"homebridge": "^1.6.0 || ^2.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"homebridge-windy-camera": "^1.0.
|
|
24
|
+
"homebridge-windy-camera": "^1.0.4",
|
|
25
25
|
"playwright-core": "^1.40.0"
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|