-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling when PS5 is completely turned off #42
Comments
How are you invoking playactor and what are you hoping for? That error message describes the situation as clearly as it can; if the Playstation is completely off then it won't respond to pings so there's no way for it to know whether or not it exists. |
The plugin invokes playactor on a set interval (in my case 5 seconds) by calling |
Can you just use the exit codes instead of grep? Per the help docs:
|
But how do I get the exit code in return? Even when I remove the grep part and execute the playactor check command I just get the error output mentioned in my OP when the PS5 is turned off |
I'm not sure how you're integrating playactor into what you're doing, but exit codes are just a part of executing a program. In bash if you |
Here is how I tackled this problem:
Steps:
|
@keremerkan thank you so much, that’s exactly what I am trying to achieve. Will try it as soon as I am back home from work. |
@CooperCGN no problem. Hope it works for you. Let me know if you need anything. |
Hi, first thanks for the awesome work.
Is there a way to get a proper error in return when the PlayStations is completely turned off. Right now I am using Playactor together with a homebridge plugin which polls the PS5 every 15 seconds, works good as long as the PS is in standby. When completely turned off my log gets spammed with this:
Error: Unable to locate device: device named PS5-XXX
at PendingDevice. (/usr/local/lib/node_modules/playactor/dist/device/pending.js:82:19)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/playactor/dist/device/pending.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I hope you get what I mean, any ideas?
The text was updated successfully, but these errors were encountered: