-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathcommands.js
More file actions
39 lines (35 loc) · 2.67 KB
/
commands.js
File metadata and controls
39 lines (35 loc) · 2.67 KB
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
39
// Learn codes here:
// http://rm-bridge.fun2code.de/rm_manage/code_learning.html
// After learning a code, define the command name
// mac address or ip address and leave the data as is.
// add a secret value that must match the request in order to validate (sent as POST parameter).
/*
Example:
{
"command": "YOUR_COMMAND_HERE",
"secret": "SET_A_RANDOM_HASH_HERE",
"ip": "YOUR_DEVICE_IP_HERE",
"mac": "MAC_ADDRESS_HERE", // Use mac instead of IP when possible.
"sequence": ["command", "command"], // If sequence is defined, all the commands inside the array will be run in sequence.
"data": "RM_BRIDGE_DATA_HERE" // only runs if there is no sequence defined.
}
*/
module.exports = [{
"command": "TV_On",
"secret": "AkDio83",
"mac":"34:ea:34:bb:16:1a",
"data": "2600ca01000124901311131012361212121112121211121212361235131112361434133412361434140f141013101236150f131210121211123612361235121212351236123615331400051800011f4b10000cb6121512151214121710151216111512151215121512151215121415121217101512151513111513141413141411161116111412151215121611151215121512151314121512151214121710151413121512151215141314141115121611161015121512151215121611151215141312151315111412151215121512161115121512151215121512141314141315121215121611151215121512151215141411141512121710151215121611151414111513151115121412151215121514141115121512151215121512151214121512151215121512161115121512151215121513151114121512151215141411161116111513141215121413141215121710151215121512151215121512161115121412151512121611151215151214141314111512151214151212171015151212151215121512151215121611161015121512151215121512161115121512151214141312151215121512151215121512151414111513131514101512151215121514141115121512000d051211121212361235131112361434"
},
{
"command": "Sound_On",
"secret": "kIADLldepp398ufkk",
"mac":"34:ea:34:bb:16:1a",
"data": "260032014e1327121412271214122613141214121411151115111412271214122712140002b94d1426131411271314112614141116101610151115111511251415102614150002b74d152513161026131610261316101511151115101610161026131610261316000ca04c1525141510261415102614151016101610161015111510261415102614150002b64e1426131610261316102613161016101511151016101610261316102613160002b74c152514151125141512241415111510161016101610151125141511251415000ca04d1425141610251515102514151115111510161016101610251416102514160002b44f1624141511251415112514151115101610161016101511251415112514150002b84c152514151125141511251415111510161016101610151125141511251415000d05000000000000"
},
{
"secret": "&dkblDA3/",
"command": "TVSound",
"sequence": ["TV_On", "Sound_On"],
"mac":"34:ea:34:bb:16:1a"
}
];