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:
21
vigilancia/tv_mensaje.py
Normal file
21
vigilancia/tv_mensaje.py
Normal 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()
|
||||
Reference in New Issue
Block a user