Skip to content

Commit 0d39500

Browse files
authored
Initial commit
0 parents  commit 0d39500

24 files changed

Lines changed: 5209 additions & 0 deletions
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!-- You must use the issue template below when submitting a bug -->
11+
12+
**Describe The Bug:**
13+
<!-- A clear and concise description of what the bug is. -->
14+
15+
**To Reproduce:**
16+
<!-- Steps to reproduce the behavior. -->
17+
18+
**Expected behavior:**
19+
<!-- A clear and concise description of what you expected to happen. -->
20+
21+
**Logs:**
22+
23+
```
24+
Show the Homebridge logs here, remove any sensitive information.
25+
```
26+
27+
**Plugin Config:**
28+
29+
```json
30+
Show your Homebridge config.json here, remove any sensitive information.
31+
```
32+
33+
**Screenshots:**
34+
<!-- If applicable, add screenshots to help explain your problem. -->
35+
36+
**Environment:**
37+
38+
* **Plugin Version**:
39+
* **Homebridge Version**: <!-- homebridge -V -->
40+
* **Node.js Version**: <!-- node -v -->
41+
* **NPM Version**: <!-- npm -v -->
42+
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
43+
44+
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# blank_issues_enabled: false
2+
# contact_links:
3+
# - name: Homebridge Discord Community
4+
# url: https://discord.gg/kqNCe2D
5+
# about: Ask your questions in the #YOUR_CHANNEL_HERE channel
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe:**
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
**Describe the solution you'd like:**
14+
<!-- A clear and concise description of what you want to happen. -->
15+
16+
**Describe alternatives you've considered:**
17+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
18+
19+
**Additional context:**
20+
<!-- Add any other context or screenshots about the feature request here. -->
21+
22+
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Support Request
3+
about: Need help?
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
<!-- You must use the issue template below when submitting a support request -->
11+
12+
**Describe Your Problem:**
13+
<!-- A clear and concise description of what problem you are trying to solve. -->
14+
15+
**Logs:**
16+
17+
```
18+
Show the Homebridge logs here, remove any sensitive information.
19+
```
20+
21+
**Plugin Config:**
22+
23+
```json
24+
Show your Homebridge config.json here, remove any sensitive information.
25+
```
26+
27+
**Screenshots:**
28+
<!-- If applicable, add screenshots to help explain your problem. -->
29+
30+
**Environment:**
31+
32+
* **Plugin Version**:
33+
* **Homebridge Version**: <!-- homebridge -V -->
34+
* **Node.js Version**: <!-- node -v -->
35+
* **NPM Version**: <!-- npm -v -->
36+
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
37+
38+
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
node-version: [18.x, 20.x, 22.x]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Lint the project
26+
run: npm run lint
27+
28+
- name: Build the project
29+
run: npm run build
30+
31+
- name: List, audit, fix outdated dependencies and build again
32+
run: |
33+
npm list --outdated
34+
npm audit || true # ignore failures
35+
npm audit fix || true
36+
npm list --outdated
37+
npm run build

.gitignore

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Ignore compiled code
2+
dist
3+
4+
# ------------- Defaults ------------- #
5+
.DS_Store
6+
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
15+
# Diagnostic reports (https://nodejs.org/api/report.html)
16+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
17+
18+
# Runtime data
19+
pids
20+
*.pid
21+
*.seed
22+
*.pid.lock
23+
24+
# Directory for instrumented libs generated by jscoverage/JSCover
25+
lib-cov
26+
27+
# Coverage directory used by tools like istanbul
28+
coverage
29+
*.lcov
30+
31+
# nyc test coverage
32+
.nyc_output
33+
34+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35+
.grunt
36+
37+
# Bower dependency directory (https://bower.io/)
38+
bower_components
39+
40+
# node-waf configuration
41+
.lock-wscript
42+
43+
# Compiled binary addons (https://nodejs.org/api/addons.html)
44+
build/Release
45+
46+
# Dependency directories
47+
node_modules/
48+
jspm_packages/
49+
50+
# Snowpack dependency directory (https://snowpack.dev/)
51+
web_modules/
52+
53+
# TypeScript cache
54+
*.tsbuildinfo
55+
56+
# Optional npm cache directory
57+
.npm
58+
59+
# Optional eslint cache
60+
.eslintcache
61+
62+
# Microbundle cache
63+
.rpt2_cache/
64+
.rts2_cache_cjs/
65+
.rts2_cache_es/
66+
.rts2_cache_umd/
67+
68+
# Optional REPL history
69+
.node_repl_history
70+
71+
# Output of 'npm pack'
72+
*.tgz
73+
74+
# Yarn Integrity file
75+
.yarn-integrity
76+
77+
# dotenv environment variables file
78+
.env
79+
.env.test
80+
81+
# parcel-bundler cache (https://parceljs.org/)
82+
.cache
83+
.parcel-cache
84+
85+
# Next.js build output
86+
.next
87+
88+
# Nuxt.js build / generate output
89+
.nuxt
90+
dist
91+
92+
# Gatsby files
93+
.cache/
94+
# Comment in the public line in if your project uses Gatsby and not Next.js
95+
# https://nextjs.org/blog/next-9-1#public-directory-support
96+
# public
97+
98+
# vuepress build output
99+
.vuepress/dist
100+
101+
# Serverless directories
102+
.serverless/
103+
104+
# FuseBox cache
105+
.fusebox/
106+
107+
# DynamoDB Local files
108+
.dynamodb/
109+
110+
# TernJS port file
111+
.tern-port
112+
113+
# Stores VSCode versions used for testing VSCode extensions
114+
.vscode-test
115+
116+
# yarn v2
117+
118+
.yarn/cache
119+
.yarn/unplugged
120+
.yarn/build-state.yml
121+
.pnp.*
122+
123+
# Webstorm
124+
.idea
125+
126+
/test/hbConfig

0 commit comments

Comments
 (0)