iobroker.fakeroku 0.2.1 → 0.2.3

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/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ **/.eslintrc.js
2
+ admin/words.js
package/.eslintrc.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "root": true,
3
+ "env": {
4
+ "es6": true,
5
+ "node": true,
6
+ "mocha": true
7
+ },
8
+ "extends": ["eslint:recommended"],
9
+ "plugins": [],
10
+ "rules": {
11
+ "indent": [
12
+ "error",
13
+ 4,
14
+ {
15
+ "SwitchCase": 1
16
+ }
17
+ ],
18
+ "no-console": "off",
19
+ "no-unused-vars": [
20
+ "error",
21
+ {
22
+ "ignoreRestSiblings": true,
23
+ "argsIgnorePattern": "^_"
24
+ }
25
+ ],
26
+ "no-var": "error",
27
+ "no-trailing-spaces": "error",
28
+ "prefer-const": "error",
29
+ "quotes": [
30
+ "error",
31
+ "single",
32
+ {
33
+ "avoidEscape": true,
34
+ "allowTemplateLiterals": true
35
+ }
36
+ ],
37
+ "semi": ["error", "always"]
38
+ },
39
+ "parserOptions": {
40
+ "ecmaVersion": 2020
41
+ }
42
+ }
@@ -0,0 +1,17 @@
1
+ # Configure here which dependency updates should be merged automatically.
2
+ # The recommended configuration is the following:
3
+ - match:
4
+ # Only merge patches for production dependencies
5
+ dependency_type: production
6
+ update_type: "semver:patch"
7
+ - match:
8
+ # Except for security fixes, here we allow minor patches
9
+ dependency_type: production
10
+ update_type: "security:minor"
11
+ - match:
12
+ # and development dependencies can have a minor update, too
13
+ dependency_type: development
14
+ update_type: "semver:minor"
15
+
16
+ # The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
17
+ # https://dependabot.com/docs/config-file/#automerged_updates
@@ -0,0 +1,18 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ time: "04:00"
8
+ timezone: Europe/Berlin
9
+ open-pull-requests-limit: 15
10
+ versioning-strategy: increase
11
+
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: monthly
16
+ time: "04:00"
17
+ timezone: Europe/Berlin
18
+ open-pull-requests-limit: 15
@@ -0,0 +1,27 @@
1
+ # Automatically merge Dependabot PRs when version comparison is within the range
2
+ # that is configured in .github/auto-merge.yml
3
+
4
+ name: Auto-Merge Dependabot PRs
5
+
6
+ on:
7
+ # WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
8
+ # details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
9
+ pull_request_target:
10
+
11
+ jobs:
12
+ auto-merge:
13
+ if: github.actor == 'dependabot[bot]'
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Check if PR should be auto-merged
20
+ uses: ahmadnassri/action-dependabot-auto-merge@v2
21
+ with:
22
+ # In order to use this, you need to go to https://github.com/settings/tokens and
23
+ # create a Personal Access Token with the permission "public_repo".
24
+ # Enter this token in your repository settings under "Secrets" and name it AUTO_MERGE_TOKEN
25
+ github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
26
+ # By default, squash and merge, so Github chooses nice commit messages
27
+ command: squash and merge
@@ -0,0 +1,95 @@
1
+ name: Test and Release
2
+
3
+ # Run this job on all pushes and pull requests
4
+ # as well as tags with a semantic version
5
+ on:
6
+ push:
7
+ branches:
8
+ - 'master'
9
+ tags:
10
+ # normal versions
11
+ - 'v[0-9]+.[0-9]+.[0-9]+'
12
+ # pre-releases
13
+ - 'v[0-9]+.[0-9]+.[0-9]+-**'
14
+ pull_request: {}
15
+
16
+ # Cancel previous PR/branch runs when a new commit is pushed
17
+ concurrency:
18
+ group: ${{ github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ # Performs quick checks before the expensive test runs
23
+ check-and-lint:
24
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
25
+
26
+ runs-on: ubuntu-latest
27
+
28
+ steps:
29
+ - uses: ioBroker/testing-action-check@v1
30
+ with:
31
+ node-version: '20.x'
32
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
33
+ # install-command: 'npm install'
34
+ lint: false
35
+
36
+
37
+ # Runs adapter tests on all supported node versions and OSes
38
+ adapter-tests:
39
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
40
+
41
+ runs-on: ${{ matrix.os }}
42
+ strategy:
43
+ matrix:
44
+ node-version: [18.x, 20.x]
45
+ os: [ubuntu-latest, windows-latest, macos-latest]
46
+
47
+ steps:
48
+ - uses: ioBroker/testing-action-adapter@v1
49
+ with:
50
+ node-version: ${{ matrix.node-version }}
51
+ os: ${{ matrix.os }}
52
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
53
+ # install-command: 'npm install'
54
+
55
+ # TODO: To enable automatic npm releases, create a token on npmjs.org
56
+ # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
57
+ # Then uncomment the following block:
58
+
59
+ # Deploys the final package to NPM
60
+ deploy:
61
+ needs: [check-and-lint, adapter-tests]
62
+
63
+ # Trigger this step only when a commit on any branch is tagged with a version number
64
+ if: |
65
+ contains(github.event.head_commit.message, '[skip ci]') == false &&
66
+ github.event_name == 'push' &&
67
+ startsWith(github.ref, 'refs/tags/v')
68
+
69
+ runs-on: ubuntu-latest
70
+
71
+ # Write permissions are required to create Github releases
72
+ permissions:
73
+ contents: write
74
+
75
+ steps:
76
+ - uses: ioBroker/testing-action-deploy@v1
77
+ with:
78
+ node-version: '20.x'
79
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
80
+ # install-command: 'npm install'
81
+ npm-token: ${{ secrets.NPM_TOKEN }}
82
+ github-token: ${{ secrets.GITHUB_TOKEN }}
83
+
84
+ # When using Sentry for error reporting, Sentry can be informed about new releases
85
+ # To enable create a API-Token in Sentry (User settings, API keys)
86
+ # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
87
+ # Then uncomment and customize the following block:
88
+ #sentry: true
89
+ #sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
90
+ #sentry-url: "https://sentry.io"
91
+ #sentry-org: "mcm4iob"
92
+ #sentry-project: "iobroker-pid"
93
+ #sentry-version-prefix: "iobroker.pid"
94
+ ## If your sentry project is linked to a GitHub repository, you can enable the following option
95
+ #sentry-github-integration: true
package/.mocharc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "require": [
3
+ "./test/mocha.setup.js"
4
+ ]
5
+ }
@@ -0,0 +1,2 @@
1
+ package.json
2
+ package-lock.json
package/.prettierrc.js ADDED
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ semi: true,
3
+ trailingComma: 'all',
4
+ singleQuote: true,
5
+ printWidth: 120,
6
+ useTabs: false,
7
+ tabWidth: 4,
8
+ endOfLine: 'lf',
9
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "plugins": ["iobroker", "license", "manual-review"]
3
+ }
package/LICENSE CHANGED
@@ -1,21 +1,22 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Pmant
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
4
+ Copyright (c) 2017 Pmant
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
22
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,61 +1,75 @@
1
- ![Logo](admin/fakeroku.png)
2
- # ioBroker.fakeroku
3
- =================
4
- This ioBroker Adapter emulates a Roku and it's only purpose is to connect ioBroker to Logitech Harmony Hubs.
5
- It may also work with other devices which can control a Roku.
6
-
7
- ## Installation
8
- Intall Adapter in ioBroker Admin
9
-
10
- ## Usage
11
-
12
- ### Configuration in ioBroker Admin:
13
- - ***LAN-IP*** needs to be the network IP of your ioBroker device
14
- - ***Multicast IP*** only change this if you know what you are doing
15
- - ***Roku devices*** add / change / delete devices to emulate
16
-
17
- ### Configuration in Harmony APP & Software
18
- Add Roku 3 device following this Guide:
19
- https://support.myharmony.com/en-us/harmony-experience-with-roku
20
- You can rename the device on your Harmony.
21
-
22
- ### States
23
- States are automatically created when fakeRoku receives a key for the first time.
24
-
25
- ## Changelog
26
-
27
- ### 0.2.1
28
- (Pmant) fix jQuery error in admin
29
- (ykuendig) add translations
30
-
31
- ### 0.2.0
32
- (Pmant) run multiple fakeroku's in one instance
33
-
34
- ### 0.1.1
35
- (Pmant) fix package.json
36
-
37
- ### 0.1.0
38
- (Pmant) initial release
39
-
40
- ## License
41
- The MIT License (MIT)
42
-
43
- Copyright (c) 2017 Pmant
44
-
45
- Permission is hereby granted, free of charge, to any person obtaining a copy
46
- of this software and associated documentation files (the "Software"), to deal
47
- in the Software without restriction, including without limitation the rights
48
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49
- copies of the Software, and to permit persons to whom the Software is
50
- furnished to do so, subject to the following conditions:
51
-
52
- The above copyright notice and this permission notice shall be included in
53
- all copies or substantial portions of the Software.
54
-
55
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
61
- THE SOFTWARE.
1
+ ![Logo](admin/fakeroku.png)
2
+ # ioBroker.fakeroku
3
+
4
+ ![Number of Installations](http://iobroker.live/badges/fakeroku-installed.svg)
5
+ ![Number of Installations](http://iobroker.live/badges/fakeroku-stable.svg)
6
+
7
+ This ioBroker Adapter emulates a Roku and it's only purpose is to connect ioBroker to Logitech Harmony Hubs.
8
+ It may also work with other devices which can control a Roku.
9
+
10
+ ## Installation
11
+ Intall Adapter in ioBroker Admin
12
+
13
+ ## Usage
14
+
15
+ ### Configuration in ioBroker Admin:
16
+ - ***LAN-IP*** needs to be the network IP of your ioBroker device
17
+ - ***Multicast IP*** only change this if you know what you are doing
18
+ - ***Roku devices*** add / change / delete devices to emulate
19
+
20
+ ### Configuration in Harmony APP & Software
21
+ Add Roku 3 device following this Guide:
22
+ https://support.myharmony.com/en-us/harmony-experience-with-roku
23
+ You can rename the device on your Harmony.
24
+
25
+ ### States
26
+ States are automatically created when fakeRoku receives a key for the first time.
27
+
28
+ ## Changelog
29
+ <!--
30
+ Placeholder for the next version (at the beginning of the line):
31
+ ### __WORK IN PROGRESS__
32
+ -->
33
+ ### 0.2.3 (2024-06-11)
34
+ * (mcm1957) Adapter requires node.js >= 18 and js-controller >= 5 now
35
+ * (mcm1957) Dependencies have been updated
36
+
37
+ ### 0.2.2 (2023-07-24)
38
+ * (Appollon77) fixed issues with controller v5
39
+
40
+ ### 0.2.1
41
+ (Pmant) fix jQuery error in admin
42
+ (ykuendig) add translations
43
+
44
+ ### 0.2.0
45
+ (Pmant) run multiple fakeroku's in one instance
46
+
47
+ ### 0.1.1
48
+ (Pmant) fix package.json
49
+
50
+ ### 0.1.0
51
+ (Pmant) initial release
52
+
53
+ ## License
54
+ The MIT License (MIT)
55
+
56
+ Copyright (c) 2024 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
57
+ Copyright (c) 2017 Pmant
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy
60
+ of this software and associated documentation files (the "Software"), to deal
61
+ in the Software without restriction, including without limitation the rights
62
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63
+ copies of the Software, and to permit persons to whom the Software is
64
+ furnished to do so, subject to the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included in
67
+ all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
75
+ THE SOFTWARE.