Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmere committed Jun 7, 2024
1 parent 5ebd7a8 commit db0c027
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 47 deletions.
Binary file added .DS_Store
Binary file not shown.
25 changes: 0 additions & 25 deletions .devcontainer.json

This file was deleted.

19 changes: 0 additions & 19 deletions .vscode/tasks.json

This file was deleted.

10 changes: 10 additions & 0 deletions hello_world/DOCS.md
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.
8 changes: 8 additions & 0 deletions hello_world/Dockerfile
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" ]
15 changes: 15 additions & 0 deletions hello_world/README.md
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
12 changes: 12 additions & 0 deletions hello_world/build.yaml
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"
22 changes: 22 additions & 0 deletions hello_world/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Hello World

Check failure on line 1 in hello_world/config.yaml

View workflow job for this annotation

GitHub Actions / Lint add-on hello_world

'boot' should be removed, it uses a default value

Check failure on line 1 in hello_world/config.yaml

View workflow job for this annotation

GitHub Actions / Lint add-on hello_world

'startup' should be removed, it uses a default value
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:
8000/tcp: 8000
options:
greeting: "Hello, Home Assistant!"
schema:
greeting:
type: str
default: "Hello, Home Assistant!"
image: aschmere/hello_world:{arch}-1.1.0

5 changes: 5 additions & 0 deletions hello_world/run.sh
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
6 changes: 3 additions & 3 deletions repository.yaml
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

0 comments on commit db0c027

Please sign in to comment.