PS4-Waker troubleshooting
-
Hi i'm trying ps4-waker to manage with Alexa. I could start the PS4 with the terminal and the command no problem, but when i create the Trigger it doesnt work. I tried with the line "node %APPDATA%\npm\node_modules\ps4-waker\dist\cli.js", and doesn`t work neither, also route them to where my file is file:///usr/local/lib/node_modules/ps4-waker/dist/cli.js and still won't work. Need help
-
@BetoFuenzalida, did you install ps4-waker using a -g like this?
npm i -g ps4-waker
That should allow you to run ps4-waker from any directory so you don't have to worry about specifying the full path.
Also, if you want to add a log file so you can see any errors, you can make your command something like this (this will capture stdout and stderr):
ps4-waker 1> c:\logs\ps4-waker.log 2>&1
-
-
@Rafa, on a mac you can do this:
On my mac I typed: which ps4-waker
I saw this output: /usr/local/bin/ps4-waker
Then I ran this: ls -al /usr/local/bin/ps4-waker
And I saw something like this: /usr/local/bin/ps4-waker -> ../lib/node_modules/ps4-waker/dist/cli.js
So I knew the path for ps4-waker's cli.js file is /usr/local/lib/node_modules/ps4-waker/dist/cli.js
I typed this to find my Node JS executable: which node
It showed me this path: /Users/russ/.nvm/versions/node/v8.17.0/bin/nodeI made ps4-waker my command in the TRIGGERcmd GUI editor this:
/Users/russ/.nvm/versions/node/v8.17.0/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js > ~/Desktop/ps4-waker.log 2>&1This part is meant to log the output of the ps4-waker command: > ~/Desktop/ps4-waker.log 2>&1
When I looked at the log I saw this:
Could not detect any matching PS4 deviceYour paths will likely be different depending on the output of your which commands.
Another way to find the path to your cli.js file is this command: find / | grep ps4-waker/dist/cli.js
-
if I type in the terminal, the system runs normally, I still linked the triggnercmd on Alexa Amazon, it recognizes the APP, she (Alexa) says she recognized a new APP, but it doesn't trigger the PS4. But, when I go to the terminal and type ps4-waker turns on, and ps4 waker standby it goes to sleep, but by the triggercmd command, it doesn't work, I've uninstalled it several times, I redid all the configuration and nothing. Anyone to help?
-
@Bráulio-Betônico, please show me the output of this command:
which node
If it shows something like /Users/russ/.nvm/versions/node/v8.17.0/bin/node, then your full command should be:
/Users/russ/.nvm/versions/node/v8.17.0/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js
-
-
@Russ It worked out! I love you!
-
@Russ Thank you very, very much! I am really happy! Would you have a command to put it to sleep?
-
@Bráulio-Betônico, awesome. I'm glad that worked.
I looked up the documentation here and I see this is the command to put the PS4 on standby:
ps4-waker standby
So in your case:
/usr/local/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js standby
-
@Russ said in PS4-Waker troubleshooting:
/usr/local/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js standby
Thank you very much. worked correctly.
-