mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
commit
da7edc2097
13 changed files with 46 additions and 26 deletions
|
@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files
|
||||||
No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file.
|
No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.7.25~ynh1
|
**Shipped version:** 0.7.25~ynh2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
FitTrackee vous permet de suivre vos activités de plein air (séances d'entraînement) à partir de fichiers gpx et de conserver vos données sur votre propre serveur.
|
FitTrackee vous permet de suivre vos activités de plein air (séances d'entraînement) à partir de fichiers gpx et de conserver vos données sur votre propre serveur.
|
||||||
Aucune application mobile n'a encore été développée, mais plusieurs applications mobiles existantes peuvent stocker localement les données des séances d'entraînement et les exporter dans un fichier gpx.
|
Aucune application mobile n'a encore été développée, mais plusieurs applications mobiles existantes peuvent stocker localement les données des séances d'entraînement et les exporter dans un fichier gpx.
|
||||||
|
|
||||||
**Version incluse :** 0.7.25~ynh1
|
**Version incluse :** 0.7.25~ynh2
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ REDIS_URL=redis://127.0.0.1:6379/__REDIS_DB__
|
||||||
# API_RATE_LIMITS="300 per 5 minutes"
|
# API_RATE_LIMITS="300 per 5 minutes"
|
||||||
|
|
||||||
# Emails
|
# Emails
|
||||||
# UI_URL=__DOMAIN__
|
UI_URL=__DOMAIN__
|
||||||
# EMAIL_URL=
|
EMAIL_URL=smtp://__APP__:__MAIL_PWD__@__DOMAIN__:587/?tls=True
|
||||||
# SENDER_EMAIL=
|
SENDER_EMAIL=__APP__@__DOMAIN__
|
||||||
# WORKERS_PROCESSES=
|
# WORKERS_PROCESSES=
|
||||||
|
|
||||||
# Workouts
|
# Workouts
|
||||||
|
|
|
@ -29,13 +29,7 @@ Environment="STATICMAP_SUBDOMAINS="
|
||||||
Environment="MAP_ATTRIBUTION="
|
Environment="MAP_ATTRIBUTION="
|
||||||
Environment="WEATHER_API_KEY="
|
Environment="WEATHER_API_KEY="
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/__APP__/gunicorn.log
|
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/__APP__/__APP__.log
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Denying access to capabilities that should not be relevant for webapps
|
# Denying access to capabilities that should not be relevant for webapps
|
||||||
|
|
|
@ -44,4 +44,20 @@ services = ["__APP__", "__APP___workers"]
|
||||||
help.fr = "Insérer la clé api donnée par le fournisseur météo choisi"
|
help.fr = "Insérer la clé api donnée par le fournisseur météo choisi"
|
||||||
bind = "WEATHER_API_KEY:/var/www/__APP__/.env"
|
bind = "WEATHER_API_KEY:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
[main.config.email_url]
|
||||||
|
ask.en = "Change SMTP mail address"
|
||||||
|
ask.fr = "Changer l’adresse courriel SMTP"
|
||||||
|
type = "string"
|
||||||
|
help.en = "Has to be like this: smtp://username:password@example.com:587/?tls=True. ❗ Please backup your original credentials for the case you want to reset it. "
|
||||||
|
help.fr = "Doit avoir la forme suivante : smtp://username:password@example.com:587/?tls=True. ❗ Veuillez sauvegarder vos coordonnées initiales au cas où vous voudriez les réinitialiser."
|
||||||
|
bind = "email_url:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
[main.config.sender_email]
|
||||||
|
ask.en = "Change sender email"
|
||||||
|
ask.fr = "Changer l’adresse courriel d’envoi"
|
||||||
|
type = "email"
|
||||||
|
bind = "sender_email:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ If you have to use the [command line interface (cli)](https://samr1.github.io/Fi
|
||||||
|
|
||||||
```
|
```
|
||||||
pushd $install_dir/
|
pushd $install_dir/
|
||||||
pipenv shell
|
source $install_dir/venv/bin/activate
|
||||||
ftcli [OPTIONS] COMMAND [ARGS]...
|
ftcli [OPTIONS] COMMAND [ARGS]...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Si vous avez besoin d’utiliser la [ligne de commande](https://samr1.github.io/
|
||||||
|
|
||||||
```
|
```
|
||||||
pushd $install_dir/
|
pushd $install_dir/
|
||||||
pipenv shell
|
source $install_dir/venv/bin/activate
|
||||||
ftcli [OPTIONS] COMMAND [ARGS]...
|
ftcli [OPTIONS] COMMAND [ARGS]...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
13
doc/PRE_UPGRADE.d/0.7.25~ynh2.md
Normal file
13
doc/PRE_UPGRADE.d/0.7.25~ynh2.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Great news!
|
||||||
|
Since latest Yunohost version 11.2.5, it’s now possible for FitTrackee to send mails 🥳
|
||||||
|
|
||||||
|
By default, your mail credentials are automatically set with the __DOMAIN__ where your installed FitTrackee.
|
||||||
|
You can change it in the config_panel (but be sure to save the initial data, in case you want revert your changes).
|
||||||
|
|
||||||
|
NB: `nohost.me`/`noho.st`/`ynh.fr` domains are special domains handled by Yunohost. If you installed FitTrackee on a subdomain such as fittrackee.mydomain.nohost.me, emails will be blocked. You will have either to:
|
||||||
|
1. install FitTrackee on a "real" domain; or
|
||||||
|
2. change your mail credentials in the config_panel.
|
||||||
|
|
||||||
|
Don’t hesitate to raise an issue on the [forum](https://forum.yunohost.org/t/fittrackee-self-hosted-outdoor-activity-tracker/24141) or on [Github](https://github.com/YunoHost-Apps/fittrackee_ynh).
|
||||||
|
|
||||||
|
Enjoy this app and thanks to @SamR1 for creating it!
|
|
@ -5,7 +5,7 @@ name = "FitTrackee"
|
||||||
description.en = "Self-hosted outdoor activity tracker 🚴"
|
description.en = "Self-hosted outdoor activity tracker 🚴"
|
||||||
description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴"
|
description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴"
|
||||||
|
|
||||||
version = "0.7.25~ynh1"
|
version = "0.7.25~ynh2"
|
||||||
|
|
||||||
maintainers = ["Thovi98"]
|
maintainers = ["Thovi98"]
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ admindoc = "https://samr1.github.io/FitTrackee"
|
||||||
code = "https://github.com/SamR1/FitTrackee"
|
code = "https://github.com/SamR1/FitTrackee"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2.5"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -63,6 +63,7 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
allow_email = true
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
|
||||||
ynh_use_logrotate --specific_user=$app
|
ynh_use_logrotate --specific_user=$app
|
||||||
touch /var/log/$app/$app.log
|
touch /var/log/$app/$app.log
|
||||||
touch /var/log/$app/${app}_workers.log
|
touch /var/log/$app/${app}_workers.log
|
||||||
touch /var/log/$app/gunicorn.log
|
|
||||||
chown -R $app:www-data /var/log/$app/
|
chown -R $app:www-data /var/log/$app/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -108,16 +107,13 @@ ynh_add_systemd_config --service="${app}_workers" --template="fittrackee_workers
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log" --log="/var/log/$app/gunicorn.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -23,7 +23,6 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
|
||||||
ynh_use_logrotate --specific_user=$app
|
ynh_use_logrotate --specific_user=$app
|
||||||
touch /var/log/$app/$app.log
|
touch /var/log/$app/$app.log
|
||||||
touch /var/log/$app/${app}_workers.log
|
touch /var/log/$app/${app}_workers.log
|
||||||
touch /var/log/$app/gunicorn.log
|
|
||||||
chown -R $app:www-data /var/log/$app/
|
chown -R $app:www-data /var/log/$app/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -67,7 +66,7 @@ systemctl enable "${app}_workers.service" --quiet
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log" --log="/var/log/$app/gunicorn.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -114,7 +114,7 @@ ynh_add_systemd_config --service="${app}_workers" --template="fittrackee_workers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log" --log="/var/log/$app/gunicorn.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -21,3 +21,4 @@ test_format = 1.0
|
||||||
test_upgrade_from.e49294c.name = "0.7.22"
|
test_upgrade_from.e49294c.name = "0.7.22"
|
||||||
test_upgrade_from.a446e8c.name = "0.7.23"
|
test_upgrade_from.a446e8c.name = "0.7.23"
|
||||||
test_upgrade_from.316dea4.name = "0.7.24"
|
test_upgrade_from.316dea4.name = "0.7.24"
|
||||||
|
test_upgrade_from.ea68daf.name = "0.7.25~ynh1"
|
Loading…
Reference in a new issue