• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

PS4-Waker troubleshooting

Mac
5
11
969
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    BetoFuenzalida
    last edited by Mar 8, 2021, 1:57 AM

    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

    R 1 Reply Last reply Mar 8, 2021, 1:12 PM Reply Quote 0
    • R
      Russ @BetoFuenzalida
      last edited by Russ Mar 9, 2021, 12:21 AM Mar 8, 2021, 1:12 PM

      @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
      

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • R
        Rafa
        last edited by Rafa Mar 12, 2021, 12:49 AM Mar 12, 2021, 12:48 AM

        Hi @Russ , how are you?

        I'm having the same issue.

        How this log command looks like in macOS?

        R 1 Reply Last reply Mar 12, 2021, 2:48 AM Reply Quote 0
        • R
          Russ @Rafa
          last edited by Russ Mar 12, 2021, 2:53 AM Mar 12, 2021, 2:48 AM

          @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/node

          I 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>&1

          This 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 device

          Your 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

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • B
            Bráulio Betônico
            last edited by Bráulio Betônico Jul 30, 2021, 1:52 AM Jul 30, 2021, 1:41 AM

            @Russ

            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?alt textalt textalt textalt textalt textalt textalt text

            R 1 Reply Last reply Jul 30, 2021, 2:26 AM Reply Quote 0
            • R
              Russ @Bráulio Betônico
              last edited by Jul 30, 2021, 2:26 AM

              @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
              

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              • B
                Bráulio Betônico
                last edited by Jul 30, 2021, 2:56 PM

                alt text @Russ

                1 Reply Last reply Reply Quote 0
                • B
                  Bráulio Betônico
                  last edited by Jul 30, 2021, 3:15 PM

                  @Russ It worked out! I love you!

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bráulio Betônico
                    last edited by Jul 30, 2021, 3:27 PM

                    @Russ Thank you very, very much! I am really happy! Would you have a command to put it to sleep?

                    R 1 Reply Last reply Jul 31, 2021, 12:42 AM Reply Quote 0
                    • R
                      Russ @Bráulio Betônico
                      last edited by Jul 31, 2021, 12:42 AM

                      @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
                      

                      Russell VanderMey

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bráulio Betônico
                        last edited by Jul 31, 2021, 4:40 AM

                        @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.

                        1 Reply Last reply Reply Quote 1
                        • T tuicemen referenced this topic on Jan 20, 2022, 2:32 PM
                        • First post
                          Last post