[ 'header' => "Content-type: application/json\r\n", 'method' => 'GET', ], ]; $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if ($result === FALSE) { die('Error Fetching data'); } return json_decode($result, true); // Decode JSON as an associative array } ?>
For a live dashboard, please visit home.
';
// Table header (optional but handy)
echo '
';
// Table body - one row per SSD
echo 'Disk ID
Model String
Serial Number
GB Written
Disk Capacity
Disk Flavor
SMART Result