mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Setup basic information
This commit is contained in:
parent
1eae032e75
commit
ed607db9d7
4 changed files with 89 additions and 1 deletions
|
@ -2,6 +2,14 @@
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld"
|
domain="domain.tld"
|
||||||
is_public=1
|
is_public=1
|
||||||
|
home="Home"
|
||||||
|
latitude="32.87336"
|
||||||
|
longitude="117.22743"
|
||||||
|
elevation="430"
|
||||||
|
unit_system="metric"
|
||||||
|
currency="USD"
|
||||||
|
country="US"
|
||||||
|
time_zone="America/Los_Angeles"
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
setup_sub_dir=0
|
setup_sub_dir=0
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
homeassistant:
|
homeassistant:
|
||||||
country: FR
|
name: __HOME__
|
||||||
|
latitude: __LATITUDE__
|
||||||
|
longitude: __LONGITUDE__
|
||||||
|
elevation: __ELEVATION__
|
||||||
|
unit_system: __UNIT_SYSTEM__
|
||||||
|
currency: __CURRENCY__
|
||||||
|
country: __COUNTRY__
|
||||||
|
time_zone: __TIME_ZONE__
|
||||||
external_url: "https://__DOMAIN__"
|
external_url: "https://__DOMAIN__"
|
||||||
auth_providers:
|
auth_providers:
|
||||||
- type: command_line
|
- type: command_line
|
||||||
|
|
|
@ -41,6 +41,71 @@
|
||||||
"fr": "Dans le cas contraire, l'application sur Smartphone ne fonctionnera pas"
|
"fr": "Dans le cas contraire, l'application sur Smartphone ne fonctionnera pas"
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "home",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Name of the location where Home Assistant is running."
|
||||||
|
},
|
||||||
|
"default": "Home"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "latitude",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Latitude of your location required to calculate the time the sun rises and sets--> https://www.openstreetmap.org"
|
||||||
|
},
|
||||||
|
"default": 32.87336
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "longitude",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Longitude of your location required to calculate the time the sun rises and sets --> https://www.openstreetmap.org"
|
||||||
|
},
|
||||||
|
"default": 117.22743
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "elevation",
|
||||||
|
"type": "number",
|
||||||
|
"ask": {
|
||||||
|
"en": "Altitude above sea level in meters. Impacts sunrise data."
|
||||||
|
},
|
||||||
|
"default": 430
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unit_system",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "metric for Metric, us_customary for US Customary. This also sets temperature_unit, Celsius for Metric and Fahrenheit for US Customary."
|
||||||
|
},
|
||||||
|
"choices": ["metric", "us_customary"],
|
||||||
|
"default": "metric"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "currency",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Pick your currency code from the column Code of Wikipedia’s list of ISO 4217 active codes --> https://en.wikipedia.org/wiki/ISO_4217#Active_codes"
|
||||||
|
},
|
||||||
|
"default": "USD"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "country",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Country in which Home Assistant is running. This may, for example, influence radio settings to comply with local regulations. The country should be specified as an ISO 3166.1 alpha-2 code. Pick your country from the column Code of Wikipedia’s list of ISO 31661 alpha-2 officially assigned code --> https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements"
|
||||||
|
},
|
||||||
|
"default": "US"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "time_zone",
|
||||||
|
"type": "string",
|
||||||
|
"ask": {
|
||||||
|
"en": "Pick your time zone from the column TZ of Wikipedia’s list of tz database time zones --> https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
|
||||||
|
},
|
||||||
|
"default": "America/Los_Angeles"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,14 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
home=$YNH_APP_ARG_HOME
|
||||||
|
latitude=$YNH_APP_ARG_LATITUDE
|
||||||
|
longitude=$YNH_APP_ARG_LONGITUDE
|
||||||
|
elevation=$YNH_APP_ARG_ELEVATION
|
||||||
|
unit_system=$YNH_APP_ARG_UNIT_SYSTEM
|
||||||
|
currency=$YNH_APP_ARG_CURRENCY
|
||||||
|
country=$YNH_APP_ARG_COUNTRY
|
||||||
|
time_zone=$YNH_APP_ARG_TIME_ZONE
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DEFINE USEFULL VARS
|
# DEFINE USEFULL VARS
|
||||||
|
|
Loading…
Add table
Reference in a new issue