Adds support for host logs (#26)

This commit is contained in:
Franck Nijhof 2020-04-02 02:13:19 +02:00 committed by GitHub
parent e65982ae89
commit 18b880edbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
#