From 18b880edbc915b4f266d27feb19c6a2d328d9ed8 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 2 Apr 2020 02:13:19 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Adds=20support=20for=20host=20logs?= =?UTF-8?q?=20(#26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/host.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/host.sh b/lib/host.sh index b8925d4..42e2362 100644 --- a/lib/host.sh +++ b/lib/host.sh @@ -31,6 +31,14 @@ function bashio::host.reboot() { bashio::api.supervisor POST /host/reboot } +# ------------------------------------------------------------------------------ +# Returns the logs created by the host system. +# ------------------------------------------------------------------------------ +function bashio::host.logs() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::api.supervisor GET /host/logs true +} + # ------------------------------------------------------------------------------ # Returns a JSON object with generic Host information. #