iobroker.apg-info 0.0.1-alpha.0

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.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Enhancement Request
3
+ about: Request new functionality
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: HGlab01
7
+
8
+ ---
9
+
10
+ **!!! Before you start !!!!**
11
+ Verify if there is not already an issue requesting the same Enhancement
12
+
13
+ **Describe wanted Enhancement !**
14
+ A clear description of the wanted functionality
15
+
16
+ **Why should we put effort in it ?**
17
+ Please add some additional information why this Enhancement should be integrated
18
+
19
+ **Additional context**
20
+ Add any other context about the problem here.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Bug report
3
+ about: Something is not working as it should
4
+ title: ''
5
+ labels: bug
6
+ assignees: HGlab01
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '...'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots & Logfiles**
24
+ If applicable, add screenshots and logfiles to help explain your problem.
25
+
26
+ **Versions:**
27
+ - Adapter version: <adapter-version>
28
+ - JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
29
+ - Node version: <node-version> <!-- determine this with `node -v` on the console -->
30
+ - Operating system: <os-name>
31
+
32
+ **Additional context**
33
+ Add any other context about the problem here.
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: Question/support
3
+ about: I have a question or I need support
4
+ title: ''
5
+ labels: support
6
+ assignees: HGlab01
7
+
8
+ ---
9
+
10
+ **Let me know how I can help you **
11
+ A clear description of the wanted functionality
@@ -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,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,18 @@
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
+ pull_request_target:
8
+
9
+ jobs:
10
+ auto-merge:
11
+ if: github.actor == 'dependabot[bot]'
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: ahmadnassri/action-dependabot-auto-merge@v2
15
+ with:
16
+ target: minor
17
+ github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
18
+ #command: squash and merge
@@ -0,0 +1,71 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ main ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ main ]
20
+ schedule:
21
+ - cron: '42 5 * * 5'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'javascript' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37
+ # Learn more:
38
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39
+
40
+ steps:
41
+ - name: Checkout repository
42
+ uses: actions/checkout@v3
43
+
44
+ # Initializes the CodeQL tools for scanning.
45
+ - name: Initialize CodeQL
46
+ uses: github/codeql-action/init@v1
47
+ with:
48
+ languages: ${{ matrix.language }}
49
+ # If you wish to specify custom queries, you can do so here or in a config file.
50
+ # By default, queries listed here will override any specified in a config file.
51
+ # Prefix the list here with "+" to use these queries and those in the config file.
52
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
53
+
54
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55
+ # If this step fails, then you should remove it and run the build manually (see below)
56
+ - name: Autobuild
57
+ uses: github/codeql-action/autobuild@v1
58
+
59
+ # ℹ️ Command-line programs to run using the OS shell.
60
+ # 📚 https://git.io/JvXDl
61
+
62
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63
+ # and modify them (or add more) to build your code if your project
64
+ # uses a compiled language
65
+
66
+ #- run: |
67
+ # make bootstrap
68
+ # make release
69
+
70
+ - name: Perform CodeQL Analysis
71
+ uses: github/codeql-action/analyze@v1
@@ -0,0 +1,82 @@
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
+ - "*"
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
+ jobs:
17
+ # Performs quick checks before the expensive test runs
18
+ check-and-lint:
19
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ steps:
24
+ - uses: ioBroker/testing-action-check@v1
25
+ with:
26
+ node-version: '14.x'
27
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
28
+ # install-command: 'npm install'
29
+ lint: true
30
+
31
+ # Runs adapter tests on all supported node versions and OSes
32
+ adapter-tests:
33
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
34
+
35
+ runs-on: ${{ matrix.os }}
36
+ strategy:
37
+ matrix:
38
+ node-version: [14.x, 16.x, 18.x]
39
+ os: [ubuntu-latest, windows-latest, macos-latest]
40
+
41
+ steps:
42
+ - uses: ioBroker/testing-action-adapter@v1
43
+ with:
44
+ node-version: ${{ matrix.node-version }}
45
+ os: ${{ matrix.os }}
46
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
47
+ # install-command: 'npm install'
48
+
49
+ # TODO: To enable automatic npm releases, create a token on npmjs.org
50
+ # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
51
+ # Then uncomment the following block:
52
+
53
+ # Deploys the final package to NPM
54
+ deploy:
55
+ needs: [check-and-lint, adapter-tests]
56
+
57
+ # Trigger this step only when a commit on any branch is tagged with a version number
58
+ if: |
59
+ contains(github.event.head_commit.message, '[skip ci]') == false &&
60
+ github.event_name == 'push' &&
61
+ startsWith(github.ref, 'refs/tags/v')
62
+ runs-on: ubuntu-latest
63
+
64
+ steps:
65
+ - uses: ioBroker/testing-action-deploy@v1
66
+ with:
67
+ node-version: '14.x'
68
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
69
+ # install-command: 'npm install'
70
+ npm-token: ${{ secrets.NPM_TOKEN }}
71
+ github-token: ${{ secrets.GITHUB_TOKEN }}
72
+
73
+ # When using Sentry for error reporting, Sentry can be informed about new releases
74
+ # To enable create a API-Token in Sentry (User settings, API keys)
75
+ # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
76
+ # Then uncomment and customize the following block:
77
+ sentry: true
78
+ sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
79
+ sentry-project: "iobroker-fuelpricemonitor"
80
+ sentry-version-prefix: "iobroker.fuelpricemonitor"
81
+ # If your sentry project is linked to a GitHub repository, you can enable the following option
82
+ # sentry-github-integration: true
@@ -0,0 +1,5 @@
1
+ {
2
+ "plugins": [
3
+ "iobroker"
4
+ ]
5
+ }
@@ -0,0 +1 @@
1
+ # Older changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 HGlab01 <iobroker.followthesun@gmail.com>
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 all
13
+ 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 THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ ![Logo](admin/apg-info.png)
2
+ # ioBroker.apg-info
3
+
4
+ [![NPM version](http://img.shields.io/npm/v/iobroker.apg-info.svg)](https://www.npmjs.com/package/iobroker.apg-info)
5
+ ![Number of Installations (stable)](http://iobroker.live/badges/apg-info-stable.svg)
6
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.apg-info.svg)](https://www.npmjs.com/package/iobroker.apg-info)
7
+ ![Number of Installations (latest)](http://iobroker.live/badges/apg-info-installed.svg)
8
+ [![Dependency Status](https://img.shields.io/librariesio/release/npm/iobroker.apg-info)](https://libraries.io/npm/iobroker.apg-info)
9
+ [![Known Vulnerabilities](https://snyk.io/test/github/HGlab01/ioBroker.apg-info/badge.svg)](https://snyk.io/test/github/HGlab01/ioBroker.apg-info)
10
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FHGlab01%2FioBroker.apg-info.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FHGlab01%2FioBroker.apg-info?ref=badge_shield)
11
+ ![Test and Release](https://github.com/HGlab01/ioBroker.apg-info/workflows/Test%20and%20Release/badge.svg)
12
+
13
+ [![NPM](https://nodei.co/npm/iobroker.apg-info.png?downloads=true)](https://nodei.co/npm/iobroker.apg-info/)
14
+
15
+ ## apg-info adapter for ioBroker
16
+ This adapter provides the peak-times for the Austrian Power Grid, where power consumption shall be avoided. In addition the adapter provides the PHELIX-AT Day-Ahead (EPEX Spot) prices for Austria.
17
+
18
+ **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)!
19
+
20
+ ## Requires
21
+ * NodeJS 14.16 or higher
22
+ * ioBroker host (js-controller) 4.0 or higher
23
+
24
+ ## Changelog
25
+ <!--
26
+ Placeholder for the next version (at the beginning of the line):
27
+ ### __WORK IN PROGRESS__
28
+ -->
29
+ ### 0.0.1-alpha.0 (2023-03-24)
30
+ * (HGlab01) First alpha version
31
+
32
+ ## License
33
+ MIT License
34
+
35
+ Copyright (c) 2022 HGlab01 <iobroker.followthesun@gmail.com>
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy
38
+ of this software and associated documentation files (the "Software"), to deal
39
+ in the Software without restriction, including without limitation the rights
40
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
+ copies of the Software, and to permit persons to whom the Software is
42
+ furnished to do so, subject to the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be included in all
45
+ copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53
+ SOFTWARE.
54
+
55
+
56
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FHGlab01%2FioBroker.apg-info.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FHGlab01%2FioBroker.apg-info?ref=badge_large)
package/SECURITY.md ADDED
@@ -0,0 +1,17 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Use this section to tell people about which versions of your project are
6
+ currently being supported with security updates.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 0.2.0 | :white_check_mark: |
11
+ | 0.1.4 | :x: |
12
+ | 0.0.1 | :x: |
13
+
14
+ ## Reporting a Vulnerability
15
+
16
+ Please report (suspected) security vulnerabilities to iobroker.followthesun@gmail.com.
17
+ If the issue is confirmed, we will release a patch as soon as possible depending on complexity but typically within a few days.
Binary file
Binary file
@@ -0,0 +1 @@
1
+ declare let systemDictionary: Record<string, Record<string, string>>;
Binary file
@@ -0,0 +1,83 @@
1
+ <html>
2
+
3
+ <head>
4
+
5
+ <!-- Load ioBroker scripts and styles-->
6
+ <link rel="stylesheet" type="text/css" href="../../css/adapter.css" />
7
+ <link rel="stylesheet" type="text/css" href="../../lib/css/materialize.css">
8
+
9
+ <script type="text/javascript" src="../../lib/js/jquery-3.2.1.min.js"></script>
10
+ <script type="text/javascript" src="../../socket.io/socket.io.js"></script>
11
+
12
+ <script type="text/javascript" src="../../js/translate.js"></script>
13
+ <script type="text/javascript" src="../../lib/js/materialize.js"></script>
14
+ <script type="text/javascript" src="../../js/adapter-settings.js"></script>
15
+
16
+ <!-- Load our own files -->
17
+ <link rel="stylesheet" type="text/css" href="style.css" />
18
+ <script type="text/javascript" src="words.js"></script>
19
+
20
+ <script type="text/javascript">
21
+ var address = [];
22
+ // This will be called by the admin adapter when the settings page loads
23
+ function load(settings, onChange) {
24
+ // example: select elements with id=key and class=value and insert value
25
+ if (!settings) return;
26
+ $('.value').each(function () {
27
+ var $key = $(this);
28
+ var id = $key.attr('id');
29
+ if ($key.attr('type') === 'checkbox') {
30
+ // do not call onChange direct, because onChange could expect some arguments
31
+ $key.prop('checked', settings[id])
32
+ .on('change', () => onChange())
33
+ ;
34
+ } else {
35
+ // do not call onChange direct, because onChange could expect some arguments
36
+ $key.val(settings[id])
37
+ .on('change', () => onChange())
38
+ .on('keyup', () => onChange())
39
+ ;
40
+ }
41
+ });
42
+ onChange(false);
43
+ // reinitialize all the Materialize labels on the page if you are dynamically adding inputs:
44
+ if (M) M.updateTextFields();
45
+ address = settings.address || [];
46
+ values2table('address', address, onChange);
47
+ }
48
+
49
+ // This will be called by the admin adapter when the user presses the save button
50
+ function save(callback) {
51
+ // example: select elements with class=value and build settings object
52
+ var obj = {};
53
+ $('.value').each(function () {
54
+ var $this = $(this);
55
+ if ($this.attr('type') === 'checkbox') {
56
+ obj[$this.attr('id')] = $this.prop('checked');
57
+ } else {
58
+ obj[$this.attr('id')] = $this.val();
59
+ }
60
+ });
61
+ obj.address = table2values('address');
62
+ callback(obj);
63
+ }
64
+ </script>
65
+
66
+ </head>
67
+
68
+ <body>
69
+
70
+ <div class="m adapter-container">
71
+
72
+ <div class="row">
73
+ <div class="col s12 m4 l2">
74
+ <img src="apg-info.png" class="logo">
75
+ </div>
76
+ </div>
77
+
78
+ <!-- Put your content here -->
79
+
80
+ <!-- For example columns with settings: -->
81
+ </div>
82
+ </body>
83
+ </html>
@@ -0,0 +1,10 @@
1
+ /* You can delete those if you want. I just found them very helpful */
2
+ * {
3
+ box-sizing: border-box
4
+ }
5
+ .m {
6
+ /* Don't cut off dropdowns! */
7
+ overflow: initial;
8
+ }
9
+
10
+ /* Add your styles here */
package/admin/words.js ADDED
@@ -0,0 +1,41 @@
1
+ /*global systemDictionary:true */
2
+ 'use strict';
3
+
4
+ systemDictionary = {
5
+ 'fuelpricemonitor adapter settings': {
6
+ 'en': 'Adapter settings for fuelpricemonitor',
7
+ 'de': 'Adaptereinstellungen für fuelpricemonitor',
8
+ 'ru': 'Настройки адаптера для fuelpricemonitor',
9
+ 'pt': 'Configurações do adaptador para fuelpricemonitor',
10
+ 'nl': 'Adapterinstellingen voor fuelpricemonitor',
11
+ 'fr': "Paramètres d'adaptateur pour fuelpricemonitor",
12
+ 'it': "Impostazioni dell'adattatore per fuelpricemonitor",
13
+ 'es': 'Ajustes del adaptador para fuelpricemonitor',
14
+ 'pl': 'Ustawienia adaptera dla fuelpricemonitor',
15
+ 'zh-cn': 'fuelpricemonitor的适配器设置'
16
+ },
17
+ 'executioninterval': {
18
+ 'en': 'option1',
19
+ 'de': 'Option 1',
20
+ 'ru': 'Опция 1',
21
+ 'pt': 'Opção 1',
22
+ 'nl': 'Optie 1',
23
+ 'fr': 'Option 1',
24
+ 'it': 'opzione 1',
25
+ 'es': 'Opción 1',
26
+ 'pl': 'opcja 1',
27
+ 'zh-cn': '选项1'
28
+ },
29
+ 'insecond': {
30
+ 'en': 'option2',
31
+ 'de': 'Option 2',
32
+ 'ru': 'option2',
33
+ 'pt': 'opção 2',
34
+ 'nl': 'Optie 2',
35
+ 'fr': 'Option 2',
36
+ 'it': 'opzione 2',
37
+ 'es': 'opcion 2',
38
+ 'pl': 'Opcja 2',
39
+ 'zh-cn': '选项2'
40
+ }
41
+ };
@@ -0,0 +1,71 @@
1
+ {
2
+ "common": {
3
+ "name": "apg-info",
4
+ "version": "0.0.1-alpha.0",
5
+ "news": {
6
+ "0.0.1-alpha.0": {
7
+ "en": "First alpha version",
8
+ "de": "Erste Alpha-Version",
9
+ "ru": "Первая альфа версия",
10
+ "pt": "Primeira versão alfa",
11
+ "nl": "Eerste alfa versie",
12
+ "fr": "Première version alpha",
13
+ "it": "Prima versione alfa",
14
+ "es": "Primera versión alfa",
15
+ "pl": "Pierwsza wersja alfa",
16
+ "uk": "Перший альфа-версія",
17
+ "zh-cn": "第一页"
18
+ }
19
+ },
20
+ "title": "Austrian Power Grid Info",
21
+ "titleLang": {
22
+ "en": "Austrian Power Grid (APG) Info",
23
+ "de": "Austrian Power Grid (APG) Informationen"
24
+ },
25
+ "desc": {
26
+ "en": "Austrian Power Grid (APG) Info",
27
+ "de": "Austrian Power Grid (APG) Informationen"
28
+ },
29
+ "authors": [
30
+ "HGlab01 <iobroker.followthesun@gmail.com>"
31
+ ],
32
+ "keywords": [
33
+ "ioBroker",
34
+ "APG",
35
+ "Austrian Power Grid",
36
+ "Stromspitzen",
37
+ "Powermonitor",
38
+ "Spitzenzeiten",
39
+ "Hochlast",
40
+ "Day ahead preis",
41
+ "PHELIX-AT Day-Ahead",
42
+ "EPEX Spot AT",
43
+ "Strompreis"
44
+ ],
45
+ "license": "MIT",
46
+ "platform": "Javascript/Node.js",
47
+ "main": "main.js",
48
+ "icon": "apg-info.png",
49
+ "enabled": true,
50
+ "extIcon": "https://raw.githubusercontent.com/HGlab01/ioBroker.apg-info/main/admin/apg-info.png",
51
+ "readme": "https://github.com/HGlab01/ioBroker.apg-info/blob/main/README.md",
52
+ "loglevel": "info",
53
+ "mode": "schedule",
54
+ "schedule": "14 1 0,14 * * *",
55
+ "allowInit": true,
56
+ "type": "other",
57
+ "compact": true,
58
+ "connectionType": "local",
59
+ "dataSource": "poll",
60
+ "materialize": true,
61
+ "dependencies": [
62
+ {
63
+ "js-controller": ">=4.0.0"
64
+ }
65
+ ],
66
+ "plugins": {}
67
+ },
68
+ "native": {},
69
+ "objects": [],
70
+ "instanceObjects": []
71
+ }
@@ -0,0 +1,16 @@
1
+ // This file extends the AdapterConfig type from "@types/iobroker"
2
+ // using the actual properties present in io-package.json
3
+ // in order to provide typings for adapter.config properties
4
+
5
+ import { native } from '../io-package.json';
6
+
7
+ type _AdapterConfig = typeof native;
8
+
9
+ // Augment the globally declared type ioBroker.AdapterConfig
10
+ declare global {
11
+ namespace ioBroker {
12
+ interface AdapterConfig extends _AdapterConfig {
13
+ // Do not enter anything here!
14
+ }
15
+ }
16
+ }