forked from jensweigele/ioBroker.yahka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
39 lines (35 loc) · 1.81 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
*
* iobroker.yahka adapter
*
*
* file io-package.json comments:
*
* {
* "common": {
* "name": "iobroker.yahka", // name has to be set and has to be equal to adapters folder name and main file name excluding extension
* "version": "0.0.0", // use "Semantic Versioning"! see http://semver.org/
* "title": "Node.js iobroker.yahka Adapter", // Adapter title shown in User Interfaces
* "authors": [ // Array of authord
* "name <[email protected]>"
* ]
* "desc": "iobroker.yahka adapter", // Adapter description shown in User Interfaces. Can be a language object {de:"...",ru:"..."} or a string
* "platform": "Javascript/Node.js", // possible values "javascript", "javascript/Node.js" - more coming
* "mode": "daemon", // possible values "daemon", "schedule", "subscribe"
* "schedule": "0 0 * * *" // cron-style schedule. Only needed if mode=schedule
* "loglevel": "info" // Adapters Log Level
* },
* "native": { // the native object is available via adapter.config in your adapters code - use it for configuration
* "test1": true,
* "test2": 42
* }
* }
*
*/
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";
// you have to require the utils module and call adapter function
import utils = require("./lib/utils"); // Get common adapter utils
import * as hkAdapter from './yahka.ioBroker-adapter';
let yahkaAdapter = new hkAdapter.TIOBrokerAdapter(utils.Adapter({name: 'yahka', systemConfig: true}), utils.controllerDir);