initial vhclient

This commit is contained in:
Hans Karlinius
2024-11-13 16:18:39 +01:00
parent 6260eb304b
commit 61fb4cda6c
24 changed files with 55 additions and 101 deletions

View File

@@ -1,2 +1 @@
# home-assistant-addons

View File

@@ -1,15 +0,0 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
## 1.2.0
- Add an apparmor profile
- Update to 3.15 base image with s6 v3
- Add a sample script to run as service and constrain in aa profile
## 1.1.0
- Updates
## 1.0.0
- Initial release

View File

@@ -1,10 +0,0 @@
# 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.

View File

@@ -1,15 +0,0 @@
# 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

View File

@@ -1,36 +0,0 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Example add-on
version: "1.2.11"
slug: example
description: Example add-on
url: "https://github.com/home-assistant/addons-example/tree/main/example"
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
init: false
startup: services
kernel_modules: true
full_access: true
host_network: true
apparmor: false
devices:
- /dev/mem
privileged:
- NET_ADMIN
- SYS_ADMIN
- SYS_RAWIO
- SYS_TIME
- SYS_NICE
#devicetree: true
usb: true
usbip: true
map:
- share:rw
options:
message: "Hello world..."
schema:
message: "str?"
#image: "ghcr.io/home-assistant/{arch}-addon-example"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

View File

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

View File

@@ -1,4 +0,0 @@
configuration:
message:
name: Message
description: The message that will be printed to the log when starting this example add-on.

View File

@@ -1,3 +1,3 @@
name: Name of repository
name: Home Assistant Addons
url: https://git.carlscrona.se/haka/home-assistant-addons
maintainer: Hans Karlinius <carlscrona@gmail.com>

7
vhclient/CHANGELOG.md Normal file
View File

@@ -0,0 +1,7 @@
## 0.1.1
- Updates
## 0.1.0
- Initial release

3
vhclient/DOCS.md Normal file
View File

@@ -0,0 +1,3 @@
# Home Assistant Add-on: VirtualHere Client
## How to use

1
vhclient/README.md Normal file
View File

@@ -0,0 +1 @@
# Home Assistant Add-on: VirtualHere Client

36
vhclient/config.yaml Normal file
View File

@@ -0,0 +1,36 @@
name: VirtualHere Client add-on
version: "0.1.1"
slug: vhclient
description: VirtualHere Client
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
url: "https://git.carlscrona.se/haka/home-assistant-addons"
startup: services
boot: manual
host_network: true
devices:
- /dev/mem
privileged:
- NET_ADMIN
- SYS_ADMIN
- SYS_RAWIO
- SYS_TIME
- SYS_NICE
full_access: true
apparmor: false
map:
- addon_config:rw
usb: true
usbip: true
kernel_modules: true
options:
autofind: false
schema:
autofind: bool
stage: experimental
init: false

BIN
vhclient/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
vhclient/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Starting VirtualHere Client as a daemon"
exec /usr/bin/vhclient -n -c /addon_config/vhclient.conf -l /dev/stdout

View File

@@ -0,0 +1,4 @@
configuration:
autofind:
name: AUTOFIND
description: Turn auto-find off