addon
This commit is contained in:
76
config/notifications.yaml
Executable file
76
config/notifications.yaml
Executable file
@@ -0,0 +1,76 @@
|
||||
# Linux BenchTools - Notifications Configuration
|
||||
|
||||
notifications:
|
||||
# Loan reminders
|
||||
loan_reminders:
|
||||
enabled: true
|
||||
days_before_return: 7 # Send reminder X days before return date
|
||||
overdue_check_enabled: true
|
||||
check_interval_hours: 24
|
||||
|
||||
# Stock alerts
|
||||
stock_alerts:
|
||||
enabled: true
|
||||
check_low_stock: true
|
||||
check_interval_hours: 24
|
||||
|
||||
# Email settings (optional)
|
||||
email:
|
||||
enabled: false
|
||||
smtp_server: ""
|
||||
smtp_port: 587
|
||||
smtp_username: ""
|
||||
smtp_password: ""
|
||||
from_address: ""
|
||||
use_tls: true
|
||||
|
||||
# Notification methods
|
||||
methods:
|
||||
- type: console
|
||||
enabled: true
|
||||
- type: email
|
||||
enabled: false
|
||||
- type: webhook
|
||||
enabled: false
|
||||
url: ""
|
||||
|
||||
# Templates
|
||||
templates:
|
||||
loan_reminder:
|
||||
subject: "Rappel - Retour de prêt prévu"
|
||||
body: |
|
||||
Bonjour {emprunteur},
|
||||
|
||||
Ceci est un rappel concernant le prêt du matériel suivant :
|
||||
- Périphérique : {peripheral_nom}
|
||||
- Date de retour prévue : {date_retour_prevue}
|
||||
|
||||
Merci de prévoir le retour du matériel.
|
||||
|
||||
Cordialement,
|
||||
Linux BenchTools
|
||||
|
||||
loan_overdue:
|
||||
subject: "RETARD - Matériel en retard de retour"
|
||||
body: |
|
||||
Bonjour {emprunteur},
|
||||
|
||||
Le matériel suivant est en retard de retour :
|
||||
- Périphérique : {peripheral_nom}
|
||||
- Date de retour prévue : {date_retour_prevue}
|
||||
- Jours de retard : {jours_retard}
|
||||
|
||||
Merci de retourner le matériel au plus vite.
|
||||
|
||||
Cordialement,
|
||||
Linux BenchTools
|
||||
|
||||
low_stock:
|
||||
subject: "Alerte stock - {peripheral_nom}"
|
||||
body: |
|
||||
Le stock du périphérique suivant est bas :
|
||||
- Périphérique : {peripheral_nom}
|
||||
- Quantité disponible : {quantite_disponible}
|
||||
- Seuil d'alerte : {seuil_alerte}
|
||||
|
||||
Considérez réapprovisionner ce matériel.
|
||||
Reference in New Issue
Block a user