loupedeck-commander 1.0.0 → 1.0.1
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/README.md +46 -0
- package/icons/bulb.png +0 -0
- package/icons/bulb_filled.png +0 -0
- package/icons/home.png +0 -0
- package/icons/home_filled.png +0 -0
- package/icons/mountain.png +0 -0
- package/icons/user.png +0 -0
- package/icons/user_filled.png +0 -0
- package/icons/volume-mute.png +0 -0
- package/icons/volume-mute_filled.png +0 -0
- package/icons/volume.png +0 -0
- package/icons/volume_filled.png +0 -0
- package/package.json +1 -1
- package/profile-1.json +10 -43
- package/icons/A-G_n.png +0 -0
- package/icons/A-G_p.png +0 -0
- package/icons/A-H_n.png +0 -0
- package/icons/A-H_p.png +0 -0
- package/icons/Audio_Plug_n.png +0 -0
- package/icons/Audio_Plug_p.png +0 -0
- package/icons/Comp_A_n.png +0 -0
- package/icons/Comp_A_p.png +0 -0
- package/icons/Comp_B_n.png +0 -0
- package/icons/Comp_B_p.png +0 -0
- package/icons/Comp_C_n.png +0 -0
- package/icons/Comp_C_p.png +0 -0
- package/icons/Comp_D_n.png +0 -0
- package/icons/Comp_D_p.png +0 -0
- package/icons/Comp_E_n.png +0 -0
- package/icons/Comp_E_p.png +0 -0
- package/icons/Comp_F_n.png +0 -0
- package/icons/Comp_F_p.png +0 -0
- package/icons/Comp_G_n.png +0 -0
- package/icons/Comp_G_p.png +0 -0
- package/icons/Comp_H_n.png +0 -0
- package/icons/Comp_H_p.png +0 -0
- package/icons/Mic_n.png +0 -0
- package/icons/Mic_p.png +0 -0
- package/icons/Sound_VolHigh.png +0 -0
- package/icons/Sound_VolLow.png +0 -0
- package/icons/Sound_VolMid.png +0 -0
- package/icons/Sound_Voldown.png +0 -0
- package/icons/Sound_Volup.png +0 -0
- package/icons/Sound_off.png +0 -0
- package/icons/cia.png +0 -0
- package/icons/saph.png +0 -0
package/README.md
CHANGED
|
@@ -7,6 +7,21 @@ The loupedeck-commander is helping you using your Loupedeck device more easily,
|
|
|
7
7
|
Features:
|
|
8
8
|
- Reference image files for every state of your button in the touch-display fields
|
|
9
9
|
- Connect commands to your state transitions
|
|
10
|
+
- Tested with following LoupeDeck devices:
|
|
11
|
+
- [LoupeDeck Live](https://loupedeck.com/products/loupedeck-live/)
|
|
12
|
+
- [LoupeDeck CT](https://loupedeck.com/products/loupedeck-ct/)
|
|
13
|
+
|
|
14
|
+
Runs on:
|
|
15
|
+
- Linux (Tested with Ubuntu 22.04 and Debian 11/12 on x64 & arm32/arm64)
|
|
16
|
+
- Windows (Tested with Windows 10/11 on x64)
|
|
17
|
+
|
|
18
|
+
Small footprint
|
|
19
|
+
- Raspberry PI Zero is suitable to run this
|
|
20
|
+
|
|
21
|
+
Please take care about the following:
|
|
22
|
+
- LoupeDeck devices after `version 0.2.x` use a serial interface instead of WebSocket.
|
|
23
|
+
When using this library please upgrade your firmware using the [LoupeDeck Software](https://loupedeck.com/downloads/)
|
|
24
|
+
Tested with Firmware version [`version 0.2.5`](https://support.loupedeck.com/f-a-q-support#firmware-connectivity-issues)
|
|
10
25
|
|
|
11
26
|
## Basic Usage
|
|
12
27
|
|
|
@@ -49,3 +64,34 @@ Run the script using the following command:
|
|
|
49
64
|
```bash
|
|
50
65
|
node index.mjs
|
|
51
66
|
```
|
|
67
|
+
|
|
68
|
+
If you end up with errors related to canvas module - please install the dependencies as mentioned below, and run `npm install -s` again
|
|
69
|
+
|
|
70
|
+
## Hints
|
|
71
|
+
|
|
72
|
+
### CANVAS Module - additional effort needed
|
|
73
|
+
|
|
74
|
+
The library is using [canvas](https://www.npmjs.com/package/canvas) to load images and render graphical content on the LoupeDeck devices.
|
|
75
|
+
Please follow the instructions to install the preconditions, to properly use canvas on your system.
|
|
76
|
+
|
|
77
|
+
Example for Ubuntu:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# different build & graphic dev-libs are needed to use canvas module:
|
|
81
|
+
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Resizing of images
|
|
85
|
+
|
|
86
|
+
The buttons images shown on the different buttons should be prepared with specific resolutions:
|
|
87
|
+
|
|
88
|
+
- Main/Center Touch-Area: 90px x 90px per Button
|
|
89
|
+
- Left/Right Touch-Area: 90px x 270px per Button
|
|
90
|
+
- LoupeDeck CT Knob Touch-Area: 240px x 240px Button
|
|
91
|
+
|
|
92
|
+
if you already have suitable icons with the right aspect ratio, you could resize them with imagemagick/mogrify:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
mkdir resized
|
|
96
|
+
mogrify -resize 90x90 -quality 100 -path resized *.png
|
|
97
|
+
```
|
package/icons/bulb.png
ADDED
|
Binary file
|
|
Binary file
|
package/icons/home.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/icons/user.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/icons/volume.png
ADDED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/profile-1.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"profile": "
|
|
2
|
+
"profile": "sample",
|
|
3
3
|
"description": "",
|
|
4
4
|
"config": {},
|
|
5
5
|
"touch": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"center": {
|
|
9
9
|
"0": {
|
|
10
10
|
"images": {
|
|
11
|
-
"off": "icons/
|
|
12
|
-
"on": "icons/
|
|
11
|
+
"off": "icons/home.png",
|
|
12
|
+
"on": "icons/home_filled.png"
|
|
13
13
|
},
|
|
14
14
|
"commands": {
|
|
15
15
|
"off": "echo \"{id} {state}\"",
|
|
@@ -19,57 +19,26 @@
|
|
|
19
19
|
},
|
|
20
20
|
"1": {
|
|
21
21
|
"images": {
|
|
22
|
-
"off": "icons/
|
|
23
|
-
"on": "icons/
|
|
22
|
+
"off": "icons/user.png",
|
|
23
|
+
"on": "icons/user_filled.png"
|
|
24
24
|
},
|
|
25
25
|
"group": "kvm1"
|
|
26
26
|
},
|
|
27
27
|
"2": {
|
|
28
|
-
"images": {
|
|
29
|
-
"off": "icons/Comp_C_n.png",
|
|
30
|
-
"on": "icons/Comp_C_p.png"
|
|
31
|
-
},
|
|
32
|
-
"group": "kvm1"
|
|
33
|
-
},
|
|
34
|
-
"3": {
|
|
35
|
-
"images": {
|
|
36
|
-
"off": "icons/Comp_B_n.png",
|
|
37
|
-
"on": "icons/Comp_B_p.png"
|
|
38
|
-
},
|
|
39
|
-
"group": "kvm1"
|
|
40
|
-
},
|
|
41
|
-
"4": {
|
|
42
|
-
"images": {
|
|
43
|
-
"off": "icons/Comp_F_n.png",
|
|
44
|
-
"on": "icons/Comp_F_p.png"
|
|
45
|
-
},
|
|
46
|
-
"group": "kvm1"
|
|
47
|
-
},
|
|
48
|
-
"5": {
|
|
49
|
-
"minPressed": 1000,
|
|
50
28
|
"type": "push",
|
|
51
|
-
"
|
|
52
|
-
"off": "
|
|
53
|
-
"on": "
|
|
29
|
+
"images": {
|
|
30
|
+
"off": "icons/bulp.png",
|
|
31
|
+
"on": "icons/bulp_filled.png"
|
|
54
32
|
}
|
|
55
33
|
},
|
|
56
|
-
"7": {
|
|
57
|
-
"images": {
|
|
58
|
-
"off": "icons/Comp_A_n.png",
|
|
59
|
-
"on": "icons/Comp_A_p.png"
|
|
60
|
-
},
|
|
61
|
-
"group": "kvm1"
|
|
62
|
-
}
|
|
63
34
|
},
|
|
64
35
|
"knob": {
|
|
65
36
|
"0": {
|
|
66
37
|
"images": {
|
|
67
|
-
"
|
|
68
|
-
"on": "icons/saph.png"
|
|
38
|
+
"default": "icons/mountain.png"
|
|
69
39
|
},
|
|
70
40
|
"commands": {
|
|
71
|
-
"off": "echo \"
|
|
72
|
-
"on": "echo \"CIA {state}\""
|
|
41
|
+
"off": "echo \"knob {state}\""
|
|
73
42
|
}
|
|
74
43
|
}
|
|
75
44
|
}
|
|
@@ -121,8 +90,6 @@
|
|
|
121
90
|
}
|
|
122
91
|
},
|
|
123
92
|
"1": {
|
|
124
|
-
"text": "PA",
|
|
125
|
-
"type": "toggle",
|
|
126
93
|
"commands": {
|
|
127
94
|
"off": "echo \"{id} {state}\"",
|
|
128
95
|
"on": "echo \"{id} {state}\"",
|
package/icons/A-G_n.png
DELETED
|
Binary file
|
package/icons/A-G_p.png
DELETED
|
Binary file
|
package/icons/A-H_n.png
DELETED
|
Binary file
|
package/icons/A-H_p.png
DELETED
|
Binary file
|
package/icons/Audio_Plug_n.png
DELETED
|
Binary file
|
package/icons/Audio_Plug_p.png
DELETED
|
Binary file
|
package/icons/Comp_A_n.png
DELETED
|
Binary file
|
package/icons/Comp_A_p.png
DELETED
|
Binary file
|
package/icons/Comp_B_n.png
DELETED
|
Binary file
|
package/icons/Comp_B_p.png
DELETED
|
Binary file
|
package/icons/Comp_C_n.png
DELETED
|
Binary file
|
package/icons/Comp_C_p.png
DELETED
|
Binary file
|
package/icons/Comp_D_n.png
DELETED
|
Binary file
|
package/icons/Comp_D_p.png
DELETED
|
Binary file
|
package/icons/Comp_E_n.png
DELETED
|
Binary file
|
package/icons/Comp_E_p.png
DELETED
|
Binary file
|
package/icons/Comp_F_n.png
DELETED
|
Binary file
|
package/icons/Comp_F_p.png
DELETED
|
Binary file
|
package/icons/Comp_G_n.png
DELETED
|
Binary file
|
package/icons/Comp_G_p.png
DELETED
|
Binary file
|
package/icons/Comp_H_n.png
DELETED
|
Binary file
|
package/icons/Comp_H_p.png
DELETED
|
Binary file
|
package/icons/Mic_n.png
DELETED
|
Binary file
|
package/icons/Mic_p.png
DELETED
|
Binary file
|
package/icons/Sound_VolHigh.png
DELETED
|
Binary file
|
package/icons/Sound_VolLow.png
DELETED
|
Binary file
|
package/icons/Sound_VolMid.png
DELETED
|
Binary file
|
package/icons/Sound_Voldown.png
DELETED
|
Binary file
|
package/icons/Sound_Volup.png
DELETED
|
Binary file
|
package/icons/Sound_off.png
DELETED
|
Binary file
|
package/icons/cia.png
DELETED
|
Binary file
|
package/icons/saph.png
DELETED
|
Binary file
|