Go to file
Stefan Agner 67abf8b7b9
Check host network connectivity (#128)
* Check host network connectivity

Check host network connectivity and offer DNS alternatives in case host
internet is not available. This allows users with broken DNS setup
to configure the host network with a working DNS.

Requires https://github.com/home-assistant/supervisor/pull/5321.

* Apply suggestions from code review

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Remove network issue warning once resolved

* Make const var again

All consts need to be assigned on creation. This is not possible in this
case.

* Improve wording

* Replace try with use

* Improve network issue wording

* Rename function, call schedule outside of then()

The idea is to call schedule() always, no matter if there is an error
or not. So call it outside of the then() block.

* Use let

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-10-07 17:48:09 +02:00
.github Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 (#125) 2024-10-03 08:34:59 +02:00
rootfs/usr/share/www Check host network connectivity (#128) 2024-10-07 17:48:09 +02:00
.devcontainer.json Adjust devcontainer (#79) 2022-11-25 08:08:02 +01:00
.gitignore Initial commit 2020-10-11 16:42:14 +02:00
.hadolint.yaml Initial commit 2020-10-11 15:14:47 +00:00
Dockerfile Bump go to 1.19 (#71) 2022-08-10 15:24:24 +02:00
LICENSE Initial commit 2020-10-11 16:42:14 +02:00
README.md Update README.md (#127) 2024-10-03 16:28:10 +02:00
build.yaml Bump home-assistant/builder from 2023.06.0 to 2023.06.1 (#91) 2023-06-27 17:56:03 +02:00
go.mod Bump github.com/rs/xid from 1.5.0 to 1.6.0 (#123) 2024-08-26 10:19:32 +02:00
go.sum Bump github.com/rs/xid from 1.5.0 to 1.6.0 (#123) 2024-08-26 10:19:32 +02:00
http.go Add proxy for network and resolution endpoints (#124) 2024-10-03 16:09:39 +02:00
main.go Add proxy for network and resolution endpoints (#124) 2024-10-03 16:09:39 +02:00
mdns.go Shutdown mdns on the right function (#8) 2020-10-12 16:02:35 +02:00

README.md

Landing page

Home Assistant OS pre-installed landing page. This is a small, temporary landing page shipped with Home Assistant OS so something is displayed while Supervisor is downloading the full version of Home Assistant Core on first startup. The landing page opens a web server on port 8123 and publishes DNS-SD discovery information. From that perspective the landing page is like a stripped down version of Home Assistant Core.