Skip to content

Commit 2f2ab68

Browse files
committed
v4.0.0
- *Alpha*: Added support for HKSV - Now Supporting Node v20 ot v22 - In this version we force all cameras to be `unbridged` - If you do not unbridge your cameras before upgrading your cameras, you will loose functionality. - To unbridge in previous version go into the camera config and check the ubridged checkbox. - the unbridge config has been removed in this version since all cameras are unbridged. - Move plugin over to scoped plugin **Full Changelog**: v3.1.4...v4.0.0
1 parent dfbf2cb commit 2f2ab68

40 files changed

+14819
-5009
lines changed

.eslintrc.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ assignees: ''
99
<!-- You must use the issue template below -->
1010

1111
**Describe The Problem:**
12+
1213
<!-- A clear and concise description of what the bug is. -->
1314

1415
**To Reproduce:**
16+
1517
<!-- Steps to reproduce the behavior. -->
1618

1719
**Logs:**
20+
1821
<!-- Bug reports that do not contain logs may be closed without warning. -->
1922

2023
```
@@ -24,22 +27,22 @@ Remove any sensitive information.
2427

2528
**Homebridge Config:**
2629

27-
```json
30+
\```json
2831
Show your homebridge config.json here.
2932
Remove any sensitive information, such as your homebridge-gsh / google-smarthome token.
30-
```
33+
\```
3134

3235
**Screenshots:**
36+
3337
<!-- If applicable, add screenshots to help explain your problem. -->
3438

3539
**Environment:**
3640

37-
* **Node.js Version**: <!-- node -v -->
38-
* **NPM Version**: <!-- npm -v -->
39-
* **Homebridge Version**: <!-- homebridge -V -->
40-
* **Homebridge Camera FFmpeg Version**:
41-
* **Homebridge Config UI X Plugin Version**:
42-
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker -->
43-
41+
- **Node.js Version**: <!-- node -v -->
42+
- **NPM Version**: <!-- npm -v -->
43+
- **Homebridge Version**: <!-- homebridge -V -->
44+
- **Homebridge Camera FFmpeg Version**:
45+
- **Homebridge Config UI X Plugin Version**:
46+
- **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker -->
4447

4548
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ assignees: ''
88
---
99

1010
**Is your feature request related to a problem? Please describe:**
11+
1112
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
1213

1314
**Describe the solution you'd like:**
15+
1416
<!-- A clear and concise description of what you want to happen. -->
1517

1618
**Describe alternatives you've considered:**
19+
1720
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
1821

1922
**Additional context:**
20-
<!-- Add any other context or screenshots about the feature request here. -->
2123

24+
<!-- Add any other context or screenshots about the feature request here. -->
2225

2326
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

.github/ISSUE_TEMPLATE/tested_config.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ assignees: ''
88
---
99

1010
**Manufacturer/Model:**
11+
1112
<!-- Which camera is this config for? -->
1213

1314
**Homebridge Config:**
1415

15-
```json
16+
\```json
1617
Show your homebridge config.json here.
1718
Remove any sensitive information, such as your homebridge-gsh / google-smarthome token.
18-
```
19+
\```
1920

2021
**Additional Information:**
22+
2123
<!-- If there is any other information that would be helpful, share it here. -->
2224

2325
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

.github/workflows/alpha-release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Alpha Release
2+
3+
on:
4+
push:
5+
branches: [alpha-*.*.*, alpha]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_and_test:
10+
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
11+
with:
12+
enable_coverage: false
13+
secrets:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
lint:
16+
needs: build_and_test
17+
uses: homebridge/.github/.github/workflows/eslint.yml@latest
18+
19+
publish:
20+
needs: lint
21+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
22+
permissions:
23+
id-token: write
24+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
25+
with:
26+
tag: 'alpha'
27+
dynamically_adjust_version: true
28+
npm_version_command: 'pre'
29+
pre_id: 'alpha'
30+
secrets:
31+
npm_auth_token: ${{ secrets.npm_token }}
32+
33+
pre-release:
34+
needs: publish
35+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
36+
uses: homebridge/.github/.github/workflows/pre-release.yml@latest
37+
with:
38+
npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
39+
body: |
40+
**Alpha Release**
41+
**Version**: v${{ needs.publish.outputs.NPM_VERSION }}
42+
[How To Test Alpha Releases](https://github.com/homebridge-plugins/homebridge-camera-ffmpeg/wiki/Alpha-Version)
43+
44+
github-releases-to-discord:
45+
name: Discord Webhooks
46+
needs: [build_and_test,publish]
47+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
48+
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
49+
with:
50+
title: "Homebridge Camera FFmpeg Alpha Release"
51+
description: |
52+
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
53+
url: "https://github.com/homebridge-plugins/homebridge-camera-ffmpeg/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
54+
secrets:
55+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}

.github/workflows/beta-release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Beta Release
2+
3+
on:
4+
push:
5+
branches: [beta-*.*.*, beta]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_and_test:
10+
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
11+
with:
12+
enable_coverage: false
13+
secrets:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
lint:
16+
needs: build_and_test
17+
uses: homebridge/.github/.github/workflows/eslint.yml@latest
18+
19+
publish:
20+
needs: lint
21+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
22+
permissions:
23+
id-token: write
24+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
25+
with:
26+
tag: 'beta'
27+
dynamically_adjust_version: true
28+
npm_version_command: 'pre'
29+
pre_id: 'beta'
30+
secrets:
31+
npm_auth_token: ${{ secrets.npm_token }}
32+
33+
pre-release:
34+
needs: publish
35+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
36+
uses: homebridge/.github/.github/workflows/pre-release.yml@latest
37+
with:
38+
npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
39+
body: |
40+
**Beta Release**
41+
**Version**: v${{ needs.publish.outputs.NPM_VERSION }}
42+
[How To Test Beta Releases](https://github.com/homebridge-plugins/homebridge-camera-ffmpeg/wiki/Beta-Version)
43+
44+
github-releases-to-discord:
45+
name: Discord Webhooks
46+
needs: [build_and_test,publish]
47+
if: ${{ github.repository == 'homebridge-plugins/homebridge-camera-ffmpeg' }}
48+
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
49+
with:
50+
title: "Homebridge Camera FFmpeg Beta Release"
51+
description: |
52+
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
53+
url: "https://github.com/homebridge-plugins/homebridge-camera-ffmpeg/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
54+
secrets:
55+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Node Build
2+
3+
on:
4+
push:
5+
branches: [latest]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
build_and_test:
11+
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
12+
with:
13+
enable_coverage: false
14+
secrets:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
lint:
17+
needs: build_and_test
18+
uses: homebridge/.github/.github/workflows/eslint.yml@latest

.github/workflows/changerelease.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Changelog to Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
changerelease:
9+
uses: homebridge/.github/.github/workflows/change-release.yml@latest
10+
secrets:
11+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Labeler
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
labeler:
7+
uses: homebridge/.github/.github/workflows/labeler.yml@latest
8+
secrets:
9+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)