Skip to content

Commit 1263061

Browse files
committed
Document the check command
1.8.4
1 parent e4b67a8 commit 1263061

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ps4-waker - Wake your PS4 (and more!) with help from the Playstation App
3030
3131
Usage:
3232
ps4-waker [options] Wake PS4 device(s)
33+
ps4-waker [options] check Check a device's status
3334
ps4-waker [options] osk-submit [text] Submit the OSK, optionally
3435
providing the text
3536
ps4-waker [options] remote <key-name...> Send remote key-press event(s)
@@ -66,6 +67,14 @@ Device selection:
6667
4. Both -t and -d: Will search for at most <time> seconds for and only
6768
act on the provided device, qutting early if found.
6869
70+
Checking device status:
71+
The "check" command provides output similar to "search," but only for
72+
the first matching device found (see above). In addition, it will exit
73+
with code '0' only if the device is awake; if it is in standby, it
74+
will exit with code '1', and in any other situation it will exit with
75+
code '2'. This command is intended to simplify initial state detection
76+
for home automation users.
77+
6978
Key names:
7079
Button names are case insensitive, and can be one of:
7180
up, down, left, right, enter, back, option, ps

lib/cli.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ps4-waker - Wake your PS4 (and more!) with help from the Playstation App
3131
3232
Usage:
3333
ps4-waker [options] Wake PS4 device(s)
34+
ps4-waker [options] check Check a device's status
3435
ps4-waker [options] osk-submit [text] Submit the OSK, optionally
3536
providing the text
3637
ps4-waker [options] remote <key-name...> Send remote key-press event(s)
@@ -67,6 +68,14 @@ Device selection:
6768
4. Both -t and -d: Will search for at most <time> seconds for and only
6869
act on the provided device, qutting early if found.
6970
71+
Checking device status:
72+
The "check" command provides output similar to "search," but only for
73+
the first matching device found (see above). In addition, it will exit
74+
with code '0' only if the device is awake; if it is in standby, it
75+
will exit with code '1', and in any other situation it will exit with
76+
code '2'. This command is intended to simplify initial state detection
77+
for home automation users.
78+
7079
Key names:
7180
Button names are case insensitive, and can be one of:
7281
up, down, left, right, enter, back, option, ps

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ps4-waker",
33
"description": "Wake your PS4 over LAN (and more!) with help from the Playstation App",
4-
"version": "1.8.3",
4+
"version": "1.8.4",
55
"author": "Daniel Leong",
66
"license": "MIT",
77
"main": "index.js",

0 commit comments

Comments
 (0)