The batteries of my nvidia shield tv sucks so i made a web remote for linux with adb installed
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
392 B

<?php
$axiosRequest = json_decode(file_get_contents('php://input'));
include_once 'ADBService.php';
$service = new ADBService(ADBService::DEFAULT_HOST);
$service->connect();
if (isset($axiosRequest->keyCode)) {
echo json_encode([$service->sendKey($axiosRequest->keyCode)]);
}
if (isset($axiosRequest->appName)) {
echo json_encode([$service->startApp($axiosRequest->appName)]);
}