homebridge-openrgb-multi 6.4.0 → 7.0.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.
- package/.gitlab-ci.yml +8 -2
- package/dist/constants.d.ts +0 -2
- package/dist/constants.js +1 -2
- package/dist/constants.js.map +1 -1
- package/dist/platformFactory.d.ts +1 -1
- package/dist/platformFactory.js +5 -4
- package/dist/platformFactory.js.map +1 -1
- package/dist/types/Context.d.ts +6 -6
- package/package.json +15 -15
- package/src/Device.ts +1 -1
- package/src/constants.ts +0 -2
- package/src/platformFactory.ts +7 -6
- package/src/types/Context.ts +6 -6
package/.gitlab-ci.yml
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
image: node
|
|
2
|
-
|
|
3
1
|
stages:
|
|
4
2
|
- build
|
|
5
3
|
- publish
|
|
6
4
|
|
|
5
|
+
variables:
|
|
6
|
+
NODE_VERSION: '24'
|
|
7
|
+
|
|
8
|
+
image: node:${NODE_VERSION}
|
|
9
|
+
|
|
7
10
|
build:
|
|
8
11
|
stage: build
|
|
9
12
|
before_script:
|
|
@@ -17,6 +20,9 @@ publish:
|
|
|
17
20
|
- build
|
|
18
21
|
only:
|
|
19
22
|
- main
|
|
23
|
+
id_tokens:
|
|
24
|
+
NPM_ID_TOKEN:
|
|
25
|
+
aud: "npm:registry.npmjs.org"
|
|
20
26
|
before_script:
|
|
21
27
|
- npm install
|
|
22
28
|
- npm run build:production
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import SimpleLogger from 'simple-node-logger';
|
|
2
1
|
import { SelectionAccessoryMode } from 'helpers-for-homebridge';
|
|
3
2
|
export declare const DEFAULT_PERSISTENCE_FILENAME = "openrgb.json";
|
|
4
3
|
export declare const DEFAULT_OPENRGB_HOST = "localhost";
|
|
5
4
|
export declare const DEFAULT_OPENRGB_PORT = 6742;
|
|
6
|
-
export declare const DEFAULT_LOG_LEVEL: SimpleLogger.STANDARD_LEVELS;
|
|
7
5
|
export declare const DEFAULT_DURATION = 1000;
|
|
8
6
|
export declare const EFFECT_TRANSITION_DURATION = 500;
|
|
9
7
|
export declare const ZONE_EFFECT_SELECTION_ACCESSORY_MODE: SelectionAccessoryMode;
|
package/dist/constants.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZONE_EFFECT_SELECTION_ACCESSORY_MODE = exports.EFFECT_TRANSITION_DURATION = exports.DEFAULT_DURATION = exports.
|
|
3
|
+
exports.ZONE_EFFECT_SELECTION_ACCESSORY_MODE = exports.EFFECT_TRANSITION_DURATION = exports.DEFAULT_DURATION = exports.DEFAULT_OPENRGB_PORT = exports.DEFAULT_OPENRGB_HOST = exports.DEFAULT_PERSISTENCE_FILENAME = void 0;
|
|
4
4
|
exports.DEFAULT_PERSISTENCE_FILENAME = 'openrgb.json';
|
|
5
5
|
exports.DEFAULT_OPENRGB_HOST = 'localhost';
|
|
6
6
|
exports.DEFAULT_OPENRGB_PORT = 6742;
|
|
7
|
-
exports.DEFAULT_LOG_LEVEL = 'info';
|
|
8
7
|
exports.DEFAULT_DURATION = 1000;
|
|
9
8
|
exports.EFFECT_TRANSITION_DURATION = 500;
|
|
10
9
|
exports.ZONE_EFFECT_SELECTION_ACCESSORY_MODE = 'outlet';
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,cAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,WAAW,CAAC;AACnC,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAC5B,QAAA,gBAAgB,GAAG,IAAI,CAAC;AACxB,QAAA,0BAA0B,GAAG,GAAG,CAAC;AACjC,QAAA,oCAAoC,GAC/C,QAAQ,CAAC"}
|
package/dist/platformFactory.js
CHANGED
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.createPlatform = void 0;
|
|
13
|
-
const simple_node_logger_1 = require("simple-node-logger");
|
|
14
13
|
const openrgb_sdk_1 = require("openrgb-sdk");
|
|
14
|
+
const winston_1 = require("winston");
|
|
15
15
|
const helpers_for_homebridge_1 = require("helpers-for-homebridge");
|
|
16
16
|
const palette_kit_core_1 = require("@manganese/palette-kit-core");
|
|
17
17
|
const palette_kit_client_1 = require("@manganese/palette-kit-client");
|
|
@@ -25,9 +25,10 @@ const createPlatform = (homebridge) => {
|
|
|
25
25
|
var _a, _b;
|
|
26
26
|
this.configuration = configuration;
|
|
27
27
|
this.zones = new Map();
|
|
28
|
-
const log =
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const log = (0, winston_1.createLogger)({
|
|
29
|
+
transports: [
|
|
30
|
+
new helpers_for_homebridge_1.HomebridgeLogTransport(homebridgeLog),
|
|
31
|
+
],
|
|
31
32
|
});
|
|
32
33
|
const persistence = new services_1.PersistenceService({
|
|
33
34
|
homebridge,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformFactory.js","sourceRoot":"","sources":["../src/platformFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"platformFactory.js","sourceRoot":"","sources":["../src/platformFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AAEtD,qCAAuC;AACvC,mEAAgE;AAChE,kEAAsD;AACtD,sEAA8D;AAG9D,yCAAgD;AAChD,+CAIuB;AACvB,iCAA8B;AAC9B,2CAAyE;AAElE,MAAM,cAAc,GAAG,CAAC,UAAe,EAAE,EAAE;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,QAAQ,CAAC;AAClB,CAAC,CAAC;AAnGW,QAAA,cAAc,kBAmGzB"}
|
package/dist/types/Context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { API } from 'homebridge';
|
|
2
|
-
import { Logger } from '
|
|
3
|
-
import OpenRGBClient from 'openrgb-sdk
|
|
4
|
-
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
5
|
-
import { Palette } from '@manganese/palette-kit-core';
|
|
6
|
-
import { PersistenceService } from '../services';
|
|
1
|
+
import type { API } from 'homebridge';
|
|
2
|
+
import type { Logger } from 'winston';
|
|
3
|
+
import type { Client as OpenRGBClient } from 'openrgb-sdk';
|
|
4
|
+
import type { PaletteClient } from '@manganese/palette-kit-client';
|
|
5
|
+
import type { Palette } from '@manganese/palette-kit-core';
|
|
6
|
+
import type { PersistenceService } from '../services';
|
|
7
7
|
export interface Context {
|
|
8
8
|
homebridge: API;
|
|
9
9
|
openRgbClient: OpenRGBClient;
|
package/package.json
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"name": "homebridge-openrgb-multi",
|
|
3
3
|
"displayName": "Homebridge OpenRGB Multi",
|
|
4
4
|
"description": "Homebridge plugin for multi-color dynamic effects for OpenRGB",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"homebridge-plugin"
|
|
8
8
|
],
|
|
9
|
-
"homepage": "https://gitlab.com/
|
|
9
|
+
"homepage": "https://gitlab.com/manganese/home/homebridge-openrgb-multi#readme",
|
|
10
10
|
"author": {
|
|
11
11
|
"name": "Samuel Goodell"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://gitlab.com/
|
|
14
|
+
"url": "https://gitlab.com/manganese/home/homebridge-openrgb-multi/issues"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+ssh://git@gitlab.com/
|
|
18
|
+
"url": "git+ssh://git@gitlab.com/manganese/home/homebridge-openrgb-multi.git"
|
|
19
19
|
},
|
|
20
20
|
"deprecated": false,
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": "
|
|
22
|
+
"node": ">=24.0.0",
|
|
23
23
|
"homebridge": "^1.6.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
},
|
|
31
31
|
"main": "dist/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@manganese/core-kit-node": "^
|
|
34
|
-
"@manganese/effect-kit": "^
|
|
35
|
-
"@manganese/palette-kit-client": "^
|
|
36
|
-
"@manganese/palette-kit-core": "^
|
|
37
|
-
"helpers-for-homebridge": "^
|
|
33
|
+
"@manganese/core-kit-node": "^4.0.0",
|
|
34
|
+
"@manganese/effect-kit": "^3.0.0",
|
|
35
|
+
"@manganese/palette-kit-client": "^5.0.0",
|
|
36
|
+
"@manganese/palette-kit-core": "^5.0.0",
|
|
37
|
+
"helpers-for-homebridge": "^6.0.0",
|
|
38
38
|
"lodash": "^4.17.21",
|
|
39
|
-
"openrgb-sdk": "^0.
|
|
39
|
+
"openrgb-sdk": "^0.6.0",
|
|
40
40
|
"rwlock": "^5.0.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"three": "^0.167.1",
|
|
42
|
+
"winston": "^3.19.0"
|
|
43
43
|
},
|
|
44
44
|
"prettier": "@manganese/prettier-configuration",
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@manganese/prettier-configuration": "^1.0.5",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^24.11.0",
|
|
48
48
|
"@types/rwlock": "^5.0.3",
|
|
49
49
|
"homebridge": "^1.6.0",
|
|
50
50
|
"prettier": "^3.1.1",
|
|
51
|
-
"typescript": "^5.
|
|
51
|
+
"typescript": "^5.9.3"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/src/Device.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ReadWriteLock from 'rwlock';
|
|
2
2
|
import { Vector2 } from 'three';
|
|
3
3
|
import { utils as openRgbUtils } from 'openrgb-sdk';
|
|
4
|
-
import OpenRGBDevice from 'openrgb-sdk
|
|
4
|
+
import { Device as OpenRGBDevice } from 'openrgb-sdk';
|
|
5
5
|
import {
|
|
6
6
|
colorToString,
|
|
7
7
|
ColorHSV,
|
package/src/constants.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import SimpleLogger from 'simple-node-logger';
|
|
2
1
|
import { SelectionAccessoryMode } from 'helpers-for-homebridge';
|
|
3
2
|
|
|
4
3
|
export const DEFAULT_PERSISTENCE_FILENAME = 'openrgb.json';
|
|
5
4
|
export const DEFAULT_OPENRGB_HOST = 'localhost';
|
|
6
5
|
export const DEFAULT_OPENRGB_PORT = 6742;
|
|
7
|
-
export const DEFAULT_LOG_LEVEL: SimpleLogger.STANDARD_LEVELS = 'info';
|
|
8
6
|
export const DEFAULT_DURATION = 1000;
|
|
9
7
|
export const EFFECT_TRANSITION_DURATION = 500;
|
|
10
8
|
export const ZONE_EFFECT_SELECTION_ACCESSORY_MODE: SelectionAccessoryMode =
|
package/src/platformFactory.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Logger } from 'simple-node-logger';
|
|
2
1
|
import { Client as OpenRGBClient } from 'openrgb-sdk';
|
|
3
|
-
import { API, Logging } from 'homebridge';
|
|
4
|
-
import {
|
|
2
|
+
import type { API, Logging } from 'homebridge';
|
|
3
|
+
import { createLogger } from 'winston';
|
|
4
|
+
import { HomebridgeLogTransport } from 'helpers-for-homebridge';
|
|
5
5
|
import { Palette } from '@manganese/palette-kit-core';
|
|
6
6
|
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
7
7
|
|
|
@@ -24,9 +24,10 @@ export const createPlatform = (homebridge: API) => {
|
|
|
24
24
|
homebridgeLog: Logging,
|
|
25
25
|
readonly configuration: PlatformConfiguration
|
|
26
26
|
) {
|
|
27
|
-
const log =
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const log = createLogger({
|
|
28
|
+
transports: [
|
|
29
|
+
new HomebridgeLogTransport(homebridgeLog),
|
|
30
|
+
],
|
|
30
31
|
});
|
|
31
32
|
const persistence = new PersistenceService({
|
|
32
33
|
homebridge,
|
package/src/types/Context.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { API } from 'homebridge';
|
|
2
|
-
import { Logger } from '
|
|
3
|
-
import OpenRGBClient from 'openrgb-sdk
|
|
4
|
-
import { PaletteClient } from '@manganese/palette-kit-client';
|
|
5
|
-
import { Palette } from '@manganese/palette-kit-core';
|
|
6
|
-
import { PersistenceService } from '../services';
|
|
1
|
+
import type { API } from 'homebridge';
|
|
2
|
+
import type { Logger } from 'winston';
|
|
3
|
+
import type { Client as OpenRGBClient } from 'openrgb-sdk';
|
|
4
|
+
import type { PaletteClient } from '@manganese/palette-kit-client';
|
|
5
|
+
import type { Palette } from '@manganese/palette-kit-core';
|
|
6
|
+
import type { PersistenceService } from '../services';
|
|
7
7
|
|
|
8
8
|
export interface Context {
|
|
9
9
|
homebridge: API;
|