iosignal-cli 1.3.0 → 1.3.2
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 +10 -0
- package/auth_file.json +13 -0
- package/auth_file.mjs +23 -0
- package/bin/ioip.js +5 -0
- package/bin/serverInfo.js +2 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -386,6 +386,16 @@ $ io-server -l 7777 -L 8888
|
|
|
386
386
|
# -L option for CongSocket port ( Arduino connection)
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
+
### Local Network IP Address
|
|
390
|
+
|
|
391
|
+
If you need the IP address of the server to access it from your local network, you can check the local network IP address of the server.
|
|
392
|
+
|
|
393
|
+
```sh
|
|
394
|
+
$ ioip
|
|
395
|
+
192.168.0.72
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
|
|
389
399
|
### IOSignal Arduino Library
|
|
390
400
|
|
|
391
401
|
Search for `IOSignal` in the Arduino library manager and install it, or see the [`iosignal-arduino`](https://github.com/remocons/iosignal-arduino) github repository
|
package/auth_file.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[
|
|
2
|
+
["sampleid","samplekey","sample_cid",0],
|
|
3
|
+
["id_max8","no_key_size_limit","communication_id",0],
|
|
4
|
+
["device1","device1_key","device1_cid",0],
|
|
5
|
+
["device2","device2_key","device2_cid",0],
|
|
6
|
+
["uno","uno","uno",1],
|
|
7
|
+
["go","go","go",2],
|
|
8
|
+
["bro","bro","bro",3],
|
|
9
|
+
["admin","admin","admin",255],
|
|
10
|
+
["adminb","adminb","adminb",255]
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
package/auth_file.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
Authentication data sample.
|
|
4
|
+
|
|
5
|
+
device props: ["did", "key", "cid", level ]
|
|
6
|
+
|
|
7
|
+
did: ( device id ) authentication id. maximum 8 chars.
|
|
8
|
+
key: ( device key ) authentication key. no size limit.
|
|
9
|
+
cid: ( communication id ) signal target id. maximum 12 chars.
|
|
10
|
+
level:( quota level) <Number> ref. /server/quotaTable.js
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
export const authInfo = [
|
|
14
|
+
["did","passowrd","cid",0],
|
|
15
|
+
["device1","device1_key","device1_cid",0],
|
|
16
|
+
["device2","device2_key","device2_cid",0],
|
|
17
|
+
["uno","uno-key","uno",1],
|
|
18
|
+
["go","go-key","go",2],
|
|
19
|
+
["bro","bro-key","bro",3],
|
|
20
|
+
["admin","admin-key","admin",255],
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
package/bin/ioip.js
ADDED
package/bin/serverInfo.js
CHANGED
|
@@ -4,7 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import boxen from 'boxen';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function getNetworkAddress (){
|
|
7
|
+
export function getNetworkAddress (){
|
|
8
8
|
for (const interfaceDetails of Object.values(networkInterfaces)) {
|
|
9
9
|
if (!interfaceDetails) continue;
|
|
10
10
|
|
|
@@ -65,7 +65,4 @@ export function serverInfo ( wsPort, congPort ){
|
|
|
65
65
|
|
|
66
66
|
return boxen(message, { padding: 1, borderColor: 'green', margin: 1, })
|
|
67
67
|
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iosignal-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "IOSignal server and client CLI program.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"io-client": "./bin/io-client.js",
|
|
9
9
|
"ios": "./bin/io-server.js",
|
|
10
10
|
"io": "./bin/io-client.js",
|
|
11
|
+
"ioip": "./bin/ioip.js",
|
|
11
12
|
"io-keygen": "./bin/io-keygen.js"
|
|
12
13
|
},
|
|
13
14
|
"author": {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"boxen": "^7.1.1",
|
|
20
21
|
"chalk": "^5.3.0",
|
|
21
22
|
"commander": "^11.1.0",
|
|
22
|
-
"iosignal": "^1.3.
|
|
23
|
+
"iosignal": "^1.3.2",
|
|
23
24
|
"meta-buffer-pack": "^1.3.1",
|
|
24
25
|
"redis": "^4.6.12"
|
|
25
26
|
},
|