Skip to content

Commit

Permalink
Merge pull request ronnieroberts#1 from bwp91/latest
Browse files Browse the repository at this point in the history
pull in latest after SO much time
  • Loading branch information
ronnieroberts authored Mar 23, 2024
2 parents 506792f + 9f0bef5 commit 4d94b28
Show file tree
Hide file tree
Showing 127 changed files with 35,217 additions and 1,464 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
env: {
es2022: true,
node: true,
},
extends: ['airbnb-base'],
ignorePatterns: ['lib/node-dns-sd/*'],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['import', 'import-newlines', 'sort-exports'],
rules: {
camelcase: 'off',
'import/extensions': ['error', { js: 'always', json: 'always' }],
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
'import-newlines/enforce': ['error', 3],
indent: ['error', 2, { SwitchCase: 1 }],
'max-len': 'off',
'new-cap': 0,
quotes: ['error', 'single'],
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 1, maxEOF: 0 }],
'no-param-reassign': 0,
'sort-exports/sort-exports': ['warn', { sortDir: 'asc' }],
'sort-imports': ['warn', { ignoreDeclarationSort: true }],
},
};
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github: bwp91
patreon: bwp91
ko_fi: bwp91
custom: ["https://www.paypal.me/BenPotter"]
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!-- PLEASE READ BEFORE POSTING A NEW ISSUE
→ If you are giving feedback or requesting a new feature then feel free to ignore this template.
→ If you are experiencing an issue with the plugin then please use this template as well as you can.
→ Things that may seem unimportant to you are often helpful in finding the cause of the issue.
-->

### What issue do you have? Please be as thorough and explicit as possible.



### Details of your setup.
* Do you use Homebridge (with config-ui?) or HOOBS?



* Which version of Homebridge/HOOBS do you have?



* Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?



* Which eWeLink devices do you have that are causing issues? Please include product models if applicable.



* Do you use your main eWeLink credentials or do you use a secondary eWeLink account for Homebridge?



### Please paste any relevant logs below.
<!-- ABOUT LOGS
→ More thorough logging can be seen by enabling 'Debug Logging' in
...the plugin settings.
→ If you are posting an error then it is helpful for me to also see
...the previous few lines as this can show the cause of the error.
→ Please enter the logs between the two ``` lines below so that
...the logs are formatted in a way which is easier to read.
-->

```
```
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🌍 Homebridge Discord Server
url: https://discord.gg/bHjKNkN
about: Please ask and answer questions here.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 🆕 Device/Feature Request
about: Submit new ideas for the plugin or request support for a new device.
title: ''
labels: ''
assignees: ''

---

* **Please explain your feature request in a one or two sentences.**



* **Is your feature request related to a problem? Please describe.**



* **Any particular eWeLink devices that this relates to?**



* **Anything else?**


9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/feedback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: ℹ️ Information/Feedback Request
about: Ask general information about this plugin or give valuable feedback.
title: ''
labels: ''
assignees: ''

---

51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/new-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: 🚨 Problem/Bug Alert
about: The plugin isn't working as expected or it's showing an error.
title: ''
labels: ''
assignees: ''

---

<!-- PLEASE READ BEFORE POSTING A NEW ISSUE
→ Please use this template as well as you can.
→ Things that may seem unimportant are often helpful in finding the cause of the issue.
-->

### What issue do you have? Please be as thorough and explicit as possible.



### Details of your setup.
* Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?



* Which version of Homebridge/HOOBS do you have?



* Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.



* Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?



* Which eWeLink devices do you have that are causing issues? Please include product models if applicable.



### Please paste any relevant logs below.
<!-- ABOUT LOGS
→ More logging can enabled with 'Debug Logging' in the plugin settings.
→ If you are posting an error then it is helpful for me to also see
the previous few lines as this can show the cause of the error.
→ Please enter the logs between the two ``` lines below so that the
logs are formatted in a way which is easier to read.
-->

```
```
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
# the Node.js versions to build on
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install
54 changes: 54 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CodeQL"

on:
push:
branches: [latest]
pull_request:
# The branches below must be a subset of the branches above
branches: [latest]
schedule:
- cron: '0 1 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.DS_Store
.nova
.npm
node_modules
.idea
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github
.nova
.npm
.idea
Loading

0 comments on commit 4d94b28

Please sign in to comment.