Control PlayStation 4 via Azure IoT Hub. (for Smart Speakers)
Connect Azure IoT Hub and wait direct method invoke.
Set environment variable IOTHUB_CONNECTION_STRING that is Azure IoT Hub connection string.
node main.js [ipAddress]
[ipAddress] is optional. Bind to a specific network adapter IP, if you have multiple.
And, invoke direct method via IoT Hub with following parameters.
var methodParams =
{
methodName: "sendPS4Command",
payload: {
"command": <COMMAND>,
"titleId": <TITLE_ID>
}
startTitle : Start PS4 application.
standby : Going to standby mode.
Specify PS4 application ID. It is different among region.
Application | Title Id (US) | Title Id (JP) | Title Id (EU) |
---|---|---|---|
Netflix | CUSA00129 | CUSA02988 | CUSA00127 |
YouTube | CUSA01015 | CUSA01065 | CUSA01116 |
Amazon Video | CUSA00130 | CUSA03099 | CUSA00126 |