Moonbow - Official Website Moonlight Media Status Page – Web Development | Moonbow

[insert_php]

/* BLOCK HEIGHT FOR BOTH RESERVES */
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => “http://moonlightmedia.eu:8989/api/queue?apikey=277e17d223364d7390d7732be27db261”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => array(
“cache-control: no-cache”
),
));

$responseA2 = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

/* DATA LINKS */

/* Test 1 */
$dataBB1 = json_decode($responseA2, true); //because of true, it’s in an array

[/insert_php]

[insert_php]
/* SONARR */
echo ‘

‘;
echo “

Sonarr

“;

/* QUEUE */
echo ‘

‘;
echo ‘

Queue

‘;
echo “

“;
echo ‘

Title

‘. $dataBB1[‘series’][0][‘title’];
echo ‘

ETA

‘. $dataBB1[‘series’][0][‘estimatedCompletionTime’];
echo ‘

‘;

[/insert_php]