02-ago: [proyecto] vigilancia - comando tv_mensaje.py (mensaje parametrizado) + API remota tv_api.py (puerto 8600, via Tailscale) + fix espera FINISHED + AGENTS.md comando tv y Regla 23

This commit is contained in:
minguezsanzjuanjose
2026-08-02 14:45:54 +02:00
parent e31478efc6
commit c15800fb10
5 changed files with 96 additions and 8 deletions

21
vigilancia/tv_mensaje.py Normal file
View File

@@ -0,0 +1,21 @@
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import config
from voz import anuncio_en_teles
def main():
texto = " ".join(sys.argv[1:])
if not texto:
print("Uso: python tv_mensaje.py \"mensaje a la tele\"")
print("Ejemplo: python tv_mensaje.py \"A cenar, la comida está lista\"")
return
print(f"Enviando a la tele: {texto}")
anuncio_en_teles(texto)
if __name__ == "__main__":
main()