mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
weather
This commit is contained in:
parent
e31ea2ef10
commit
4dd0d31774
4 changed files with 20 additions and 3 deletions
|
@ -36,6 +36,6 @@ SENDER_EMAIL=
|
|||
|
||||
# Weather
|
||||
# available weather API providers: darksky, visualcrossing
|
||||
# WEATHER_API_PROVIDER=visualcrossing
|
||||
# WEATHER_API_KEY=
|
||||
WEATHER_API_PROVIDER=__WEATHER_PROVIDER__
|
||||
WEATHER_API_KEY=__WEATHER_KEY__
|
||||
|
||||
|
|
|
@ -8,6 +8,9 @@ location __PATH__/ {
|
|||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -40,6 +40,19 @@ ram.runtime = "50M"
|
|||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
||||
type = "user"
|
||||
|
||||
[install.weather_provider]
|
||||
ask.en = "(Optional) Choose your weather provider between Darksky and Visual Crossing"
|
||||
ask.fr = "(Optionnel) Choisissez votre fournisseur météo entre Darksky et Visual Crossing"
|
||||
help.en = "As Darksky is deprecating his api, it is suggested to opt for Visual Crossing"
|
||||
help.fr = "Comme Darksky déprécie son API, il est suggéré d'opter pour Visual Crossing"
|
||||
type = "string"
|
||||
Choices = ["darksky", "visualcrossing"]
|
||||
|
||||
[install.weather_key]
|
||||
ask.en = "Insert here the api key from the chosen weather provider"
|
||||
ask.fr = "Insérez ici la clé API du fournisseur de météo choisi".
|
||||
type = "string"
|
||||
|
||||
[resources]
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
@ -125,7 +126,7 @@ ynh_script_progression --message="Starting systemd services..." --weight=15
|
|||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="Succeeded"
|
||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="Started"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
Loading…
Reference in a new issue