annotate service/announce/tasks.py @ 1754:92999dfbf321 default tip

add shelly support
author drewp@bigasterisk.com
date Tue, 04 Jun 2024 13:03:43 -0700
parents f70514b127d2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
670
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
1 from invoke import task, Collection
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
2
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
3 import sys
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
4 sys.path.append('/my/proj/release')
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
5 from serv_tasks import serv_tasks
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
6
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
7 ns = Collection()
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
8
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
9 coll = Collection('announce')
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
10 ns.add_collection(coll)
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
11 serv_tasks(coll, 'serv.n3', 'announce')
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
12
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
13 coll = Collection('tts')
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
14 ns.add_collection(coll)
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
15 serv_tasks(ns, 'serv.n3', 'tts_server')