state . "
"; echo "Hotend: " . round($xml->hotend, 0) . "°c
"; echo "Bed: " . round($xml->bed, 0) . "°c
"; if ($xml->progress != "NA") { echo "Progress: " . $xml->progress . "%"; } } catch(Exception $e) { echo "ERROR:\n" . $e->getMessage(). " (severity " . $e->getCode() . ")"; } ?>