-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
74 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Home Assistant Add-on: Example add-on | ||
|
||
## How to use | ||
|
||
This add-on really does nothing. It is just an example. | ||
|
||
When started it will print the configured message or "Hello world" in the log. | ||
|
||
It will also print "All done!" in `/share/example_addon_output.txt` to show | ||
simple example of the usage of `map` in addon config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG BUILD_FROM | ||
FROM $BUILD_FROM | ||
|
||
# Copy data for add-on | ||
COPY run.sh / | ||
RUN chmod a+x /run.sh | ||
|
||
CMD [ "/run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Home Assistant Add-on: Example add-on | ||
|
||
_Example add-on to use as a blueprint for new add-ons._ | ||
|
||
![Supports aarch64 Architecture][aarch64-shield] | ||
![Supports amd64 Architecture][amd64-shield] | ||
![Supports armhf Architecture][armhf-shield] | ||
![Supports armv7 Architecture][armv7-shield] | ||
![Supports i386 Architecture][i386-shield] | ||
|
||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg | ||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg | ||
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg | ||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg | ||
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile | ||
build_from: | ||
aarch64: "aschmere/hello_world:latest" | ||
amd64: "aschmere/hello_world:latest" | ||
armhf: "aschmere/hello_world:latest" | ||
armv7: "aschmere/hello_world:latest" | ||
i386: "aschmere/hello_world:latest" | ||
labels: | ||
org.opencontainers.image.title: "Home Assistant Add-on: Hello World." | ||
org.opencontainers.image.description: "Hello World" | ||
args: | ||
TEMPIO_VERSION: "2021.09.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Hello World | ||
Check failure on line 1 in hello_world/config.yaml GitHub Actions / Lint add-on hello_world
|
||
version: 1.1.0 | ||
slug: hello_world | ||
description: My first Home Assistant add-on. | ||
arch: | ||
- armhf | ||
- armv7 | ||
- aarch64 | ||
- amd64 | ||
- i386 | ||
startup: application | ||
boot: auto | ||
ports: | ||
80/tcp: 8080 | ||
options: | ||
greeting: "Hello, Home Assistant!" | ||
schema: | ||
greeting: "str?" | ||
image: "aschmere/hello_world" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
echo "Hello world!" | ||
|
||
python3 -m http.server 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# https://developers.home-assistant.io/docs/add-ons/repository#repository-configuration | ||
name: Example Home Assistant add-on repository | ||
url: 'https://github.com/home-assistant/addons-example' | ||
maintainer: Awesome Maintainer <awesome@example.com> | ||
name: Arnos Home Assistant Add-On Test Repository | ||
url: 'https://github.com/aschmere/hass_addon_test' | ||
maintainer: Test |