03-oct: migracion juanjo - rutas dinamicas (.py/.ps1/.ts) + changelog (apps, OmniRoute 3.8.51, UFW 5001)

This commit is contained in:
Juanjo Minguez
2026-10-03 22:24:12 +02:00
parent 3f20313f6d
commit a75211cd05
17 changed files with 104 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ def check_homeassistant():
"""Verifica si Home Assistant esta corriendo en el VPS"""
try:
result = subprocess.run(
["ssh", "-i", r"C:\Users\juanm\Documents\GitHub\contabo",
["ssh", "-i", os.path.expanduser("~/Documents/GitHub/contabo"),
"root@185.187.169.109",
"docker ps | grep homeassistant | grep -q Up && echo OK || echo NOK"],
capture_output=True,
@@ -49,7 +49,7 @@ Add-Type -AssemblyName System.Windows.Forms
try:
subprocess.run([
"python",
r"C:\Users\juanm\Documents\GitHub\biblioteca_negocio_prolongo\scripts\aviso_sonoro.py",
os.path.expanduser("~/Documents/GitHub/biblioteca_negocio_prolongo/scripts/aviso_sonoro.py"),
"ok"
])
except Exception: