Simplify add-on files (#18)

This commit is contained in:
Joakim Sørensen
2021-09-28 19:18:53 +02:00
committed by GitHub
parent a0ca06a9fb
commit f238f0857b
7 changed files with 11 additions and 29 deletions

View File

@@ -2,18 +2,8 @@
## 1.1.0 ## 1.1.0
- Add configuration options - Updates
- Add labels to the docker image
- Install tempio in the docker image to show how args can be used
## 1.0.1
- Use yaml for config and build files
## 1.0.0 ## 1.0.0
- Complete refresh of all files
## 0.1.0
- Initial release - Initial release

View File

@@ -1,13 +1,5 @@
# Home Assistant Add-on: Example add-on # Home Assistant Add-on: Example add-on
## Installation
Follow these steps to get the add-on installed on your system:
1. Navigate in your Home Assistant frontend to **Supervisor** -> **Add-on Store**.
1. Find the "Example add-on" add-on and click it.
1. Click on the "INSTALL" button.
## How to use ## How to use
This add-on really does nothing. It is just an example. This add-on really does nothing. It is just an example.

View File

@@ -8,5 +8,5 @@ RUN \
curl -sSLf -o /usr/bin/tempio \ curl -sSLf -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"
# Copy data # Copy root filesystem
COPY rootfs / COPY rootfs /

View File

@@ -8,8 +8,6 @@ _Example add-on to use as a blueprint for new add-ons._
![Supports armv7 Architecture][armv7-shield] ![Supports armv7 Architecture][armv7-shield]
![Supports i386 Architecture][i386-shield] ![Supports i386 Architecture][i386-shield]
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-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 [armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg

BIN
example/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

View File

@@ -1,6 +1,7 @@
#!/usr/bin/execlineb -S1 #!/usr/bin/execlineb -S1
# ============================================================================== # ==============================================================================
# Take down the S6 supervision tree when example fails # Take down the S6 supervision tree when example fails
# s6-overlay docs: https://github.com/just-containers/s6-overlay
# ============================================================================== # ==============================================================================
if { s6-test ${1} -ne 0 } if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 } if { s6-test ${1} -ne 256 }

View File

@@ -1,18 +1,19 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Start the example service # Start the example service
# s6-overlay docs: https://github.com/just-containers/s6-overlay
# ============================================================================== # ==============================================================================
# Add your code here # Add your code here
# Declare variables
declare message
## Get the 'message' key from the user config options. ## Get the 'message' key from the user config options.
CONFIG_MESSAGE=$(bashio::config 'message') message=$(bashio::config 'message')
## Set the message to be printed, defaults to "Hello World..." ## Print the message the user supplied, defaults to "Hello World..."
PRINT_MESSAGE=${CONFIG_MESSAGE:="Hello World..."} bashio::log.info "${message:="Hello World..."}"
## Print the message the user supplied
bashio::log.info "${PRINT_MESSAGE}"
## Run your program ## Run your program
# exec my_program --with-params # exec my_program --with-params