fix(appdaemon) fix port + gui upkeep + docs (#5921)

This commit is contained in:
Xstar97
2023-01-01 18:14:39 +02:00
committed by GitHub
parent e16646417e
commit 6d6cc013c6
3 changed files with 62 additions and 37 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/appdaemon - https://github.com/truecharts/charts/tree/master/charts/stable/appdaemon
- https://github.com/AppDaemon/appdaemon - https://github.com/AppDaemon/appdaemon
type: application type: application
version: 11.0.7 version: 11.0.8
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- utilities - utilities
@@ -0,0 +1,14 @@
# Installation Guide
- Set `HA Token` to a Long Live HA token that can be found by going to your profile and then at bottom of the page you will see `Long-Lived Access Tokens`.
- Create token and give it any name.
- Copy the token and paste it to the above field.
- Set `HA URL` to the IP or cluster url + port, for ex: `http://home-assistant.ix-home-assistant.svc.cluster.local:8123`
- Set `Dashboard URL` to a http/s url.
- HTTP ex: `http://IP:PORT`
- HTTPS ex: `https://app.mydomain.tld`
- Set `Latitude`, `Longitude`, `ELEVATION` by the using this 3rd party [service](https://www.latlong.net/) or any service you want. It needs to match to what you set in HA, according to AppDaemon's docs.
+47 -36
View File
@@ -9,61 +9,61 @@ questions:
# Include{replica1} # Include{replica1}
# Include{controllerExpertExtraArgs} # Include{controllerExpertExtraArgs}
- variable: secretEnv - variable: secretEnv
group: "App Configuration" group: App Configuration
label: "Image Secrets" label: Image Secrets
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: TOKEN - variable: TOKEN
label: "HA Token" label: HA Token
description: "Your HomeAssistant Token" description: Your Long Live Home-Assistant Token
schema: schema:
type: string type: string
private: true private: true
required: true required: true
default: "REPLACETHIS" default: ""
# Docker specific env # Docker specific env
- variable: env - variable: env
group: "App Configuration" group: App Configuration
label: "Image Environment" label: Image Environment
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: HA_URL - variable: HA_URL
label: "HA URL" label: HA URL
description: "Your HomeAssistant URL" description: Your Home-Assistant URL
schema: schema:
type: string type: string
default: "" default: ""
required: true required: true
- variable: DASH_URL - variable: DASH_URL
label: "Dashboard URL" label: Dashboard URL
description: "URL of your appdaemon dashboard" description: URL of your AppDaemon dashboard
schema: schema:
type: string type: string
default: "http://$HOSTNAME:5050" default: http://$HOSTNAME:5050
required: true required: true
- variable: LATITUDE - variable: LATITUDE
label: "Latitude" label: Latitude
description: "Latitude of your home assistant instance" description: Latitude of your home assistant instance
schema: schema:
type: string type: string
default: "" default: ""
valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$' valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$'
required: true required: true
- variable: LONGITUDE - variable: LONGITUDE
label: "Longitude" label: Longitude
description: "Longitude of your home assistant instance" description: Longitude of your home assistant instance
schema: schema:
type: string type: string
default: "" default: ""
valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$' valid_chars: '^[0-9]{1,}\.{1}[0-9]{1,}$'
required: true required: true
- variable: ELEVATION - variable: ELEVATION
label: "Elevation" label: Elevation
description: "Longitude of your home assistant instance" description: Longitude of your home assistant instance
schema: schema:
type: int type: int
default: 0 default: 0
@@ -71,8 +71,8 @@ questions:
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: "Main Service" label: Main Service
description: "The Primary service on which the healthcheck runs, often the webUI" description: The Primary service on which the healthcheck runs, often the webUI
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -80,17 +80,17 @@ questions:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: "Main Service Port Configuration" label: Main Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 51050 default: 5050
required: true required: true
# Include{serviceExpertRoot} # Include{serviceExpertRoot}
default: false default: false
@@ -98,52 +98,63 @@ questions:
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: conf - variable: conf
label: "App Config Storage" label: App Config Storage
description: "Stores the Application Configuration." description: Stores the Application Configuration.
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: Main Ingress
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressList}
# Include{security} # Include{security}
# Include{securityContextAdvancedRoot} # Include{securityContextAdvancedRoot}
- variable: privileged - variable: privileged
label: "Privileged mode" label: Privileged mode
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: readOnlyRootFilesystem - variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem" label: ReadOnly Root Filesystem
schema: schema:
type: boolean type: boolean
default: true default: true
- variable: allowPrivilegeEscalation - variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation" label: Allow Privilege Escalation
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: runAsNonRoot - variable: runAsNonRoot
label: "runAsNonRoot" label: runAsNonRoot
schema: schema:
type: boolean type: boolean
default: false default: false
# Include{podSecurityContextRoot} # Include{podSecurityContextRoot}
- variable: runAsUser - variable: runAsUser
label: "runAsUser" label: runAsUser
description: "The UserID of the user running the application" description: The UserID of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: runAsGroup - variable: runAsGroup
label: "runAsGroup" label: runAsGroup
description: "The groupID this App of the user running the application" description: The groupID this App of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: fsGroup
description: "The group that should own ALL storage." description: The group that should own ALL storage.
schema: schema:
type: int type: int
default: 568 default: 568