Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
add temperature sensor
  • Loading branch information
donavanbecker committed Jan 13, 2024
0 parents commit d3c4740
Show file tree
Hide file tree
Showing 40 changed files with 11,234 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin
],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"ignorePatterns": ["dist", "server"],
"rules": {
"quotes": ["warn", "single"],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": ["warn", "unix"],
"semi": ["warn", "always"],
"comma-dangle": ["warn", "always-multiline"],
"dot-notation": "off",
"eqeqeq": "warn",
"curly": ["warn", "all"],
"brace-style": ["warn"],
"prefer-arrow-callback": ["warn"],
"max-len": ["warn", 150],
"no-console": ["warn"], // use the provided Homebridge log method instead
"no-non-null-assertion": ["off"],
"comma-spacing": ["error"],
"no-multi-spaces": [
"warn",
{
"ignoreEOLComments": true
}
],
"no-trailing-spaces": ["warn"],
"lines-between-class-members": [
"warn",
"always",
{
"exceptAfterSingleLine": true
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: donavanbecker
custom: paypal.me/DonavanBecker
92 changes: 92 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Bug-Report
description: Report a Bug to help us improve
title: 'Bug: '
labels: [bug]
assignees:
- donavanbecker
body:
- type: markdown
attributes:
value: |
You must use the issue template below when submitting a bug.
- type: textarea
attributes:
label: Describe the Bug
placeholder: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
placeholder: Steps to reproduce the behavior.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
placeholder: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
id: Logs
attributes:
label: Relevant Log Output
placeholder: Bug reports that do not contain logs may be closed without warning. Show the Homebridge logs here. If using Homebridge UI, you can easly downlaod your log by visiting the log page on the UI and Clicking the Download Icon in the top right. Remove any sensitive information, such as your homebridge-meater device info. Please Turn on Debug Mode before submitting your Issue so more logs can be shared to fix the issue being submitted.
render: shell
validations:
required: true
- type: textarea
id: Config
attributes:
label: Config for homebridge-meater
placeholder: Paste your homebridge config.json here. Remove any sensitive information, such as your homebridge-meater device info.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Screenshots
description: If applicable add screenshots to help explain your problem.
placeholder: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: input
attributes:
label: Device and Model
placeholder: If applicable, add screenshots to help explain your problem.
validations:
required: true
- type: markdown
attributes:
value: |
Environment
- type: input
attributes:
label: Node.js Version
placeholder: v20.10.0
validations:
required: true
- type: input
attributes:
label: Homebridge Version
placeholder: v1.7.0
validations:
required: true
- type: input
attributes:
label: Homebridge Meater Plugin Version
placeholder: v1.0.0
validations:
required: true
- type: input
attributes:
label: Homebridge UI Version
placeholder: v4.41.2
validations:
required: false
- type: input
attributes:
label: Operating System
placeholder: Raspbian / Ubuntu / Debian / Windows / macOS / Docker
validations:
required: true
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: Meater (Official website)
url: https://www.meater.com/
about: The Offical Meater Website.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature Request
description: Suggest an idea for this project
title: 'Feature Request: '
labels: [enhancement]
assignees:
- donavanbecker
body:
- type: markdown
attributes:
value: |
You must use the issue template below when submitting a feature request.
- type: markdown
attributes:
value: |
Is your feature request related to a problem? Please describe.
- type: textarea
attributes:
label: Problem
placeholder: A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
validations:
required: false
- type: textarea
attributes:
label: Solution
placeholder: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Alternatives
placeholder: A clear and concise description of any alternative solutions or features you have considered.
validations:
required: false
- type: textarea
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the feature request here. Post device logs here.
validations:
required: false
80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/support-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Support Request
description: Need help?
title: 'Support Request: '
labels: [question]
assignees:
- donavanbecker
body:
- type: markdown
attributes:
value: |
You must use the issue template below when submitting a support request.
- type: input
attributes:
label: Describe Your Problem
placeholder: A clear and concise description of what problem you are trying to solve.
validations:
required: true
- type: textarea
id: Logs
attributes:
label: Relevant log output
placeholder: Bug reports that do not contain logs may be closed without warning. Show the Homebridge logs here. If using Homebridge Config-UI-X, you can easly download your log by visiting the log page on the UI and Clicking the Download Icon in the top right. Remove any sensitive information, such as your homebridge-meater device info. Please Turn on Debug Mode before submitting your Issue so more logs can be shared to fix the issue being submitted.
render: shell
validations:
required: false
- type: textarea
id: Config
attributes:
label: Config for homebridge-meater
placeholder: Paste your homebridge config.json here. Remove any sensitive information, such as your homebridge-meater device info.
render: shell
validations:
required: false
- type: textarea
attributes:
label: Screenshots
description: If applicable add screenshots to help explain your problem.
placeholder: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: input
attributes:
label: Device & Model
placeholder: If applicable, add screenshots to help explain your problem.
validations:
required: true
- type: markdown
attributes:
value: |
Environment
- type: input
attributes:
label: Node.js Version
placeholder: v20.10.0
validations:
required: true
- type: input
attributes:
label: Homebridge Version
placeholder: v1.7.0
validations:
required: true
- type: input
attributes:
label: Homebridge Meater Plugin Version
placeholder: v1.0.0
validations:
required: true
- type: input
attributes:
label: Homebridge UI Version
placeholder: v4.41.2
validations:
required: false
- type: input
attributes:
label: Operating System
placeholder: Raspbian / Ubuntu / Debian / Windows / macOS / Docker
validations:
required: true
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
target-branch: 'beta-*.*.*'
schedule:
interval: 'daily'
- package-ecosystem: 'github-actions' # See documentation for possible values
directory: '/' # Location of package manifests
target-branch: 'beta-*.*.*'
schedule:
interval: 'daily'
38 changes: 38 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Add 'branding' label to any changes within 'docs' folder or any subfolders
branding:
- changed-files:
- any-glob-to-any-file: branding/**

# Add 'docs' label to any change to .md files within the entire repository
docs:
- changed-files:
- any-glob-to-any-file: '**/*.md'

# Add 'enhancement' label to any change to src files within the source dir EXCEPT for the docs sub-folder
enhancement:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- any-glob-to-any-file: 'config.schema.json'

# Add 'dependencies' label to any change to src files within the source dir EXCEPT for the docs sub-folder
dependencies:
- changed-files:
- any-glob-to-any-file: 'package.json'
- any-glob-to-any-file: 'package-lock.json'

# Add 'beta' label to any PR that is opened against the `beta` branch
beta:
- base-branch: 'beta*'

# Add 'alpha' label to any PR that is opened against the `alpha` branch
alpha:
- base-branch: 'alpha*'

# Add 'latest' label to any PR that is opened against the `latest` branch
latest:
- base-branch: 'latest'

# Add 'workflow' to any changes within 'workflow' folder or any subfolders
workflow:
- changed-files:
- any-glob-to-any-file: .github/**
31 changes: 31 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node-CI Beta

on:
push:
branches: [beta-*.*.*, beta]
workflow_dispatch:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest

publish:
needs: lint

if: ${{ github.repository == 'donavanbecker/homebridge-meater' }}

uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'beta'
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: 'beta'
secrets:
npm_auth_token: ${{ secrets.npm_token }}
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node Build

on:
push:
branches: [latest]
pull_request:
workflow_dispatch:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest
Loading

0 comments on commit d3c4740

Please sign in to comment.