Mercurial > code > home > repos > homeauto
view service/playSound/tasks.py @ 696:c52b172c0824
add publish to ON/OFF messages. split up the main statement handler
Ignore-this: b1ec515e6873a6841b1c31c3fb7a2a36
author | drewp@bigasterisk.com |
---|---|
date | Fri, 31 Jan 2020 23:55:27 -0800 |
parents | 28cc07978a71 |
children |
line wrap: on
line source
from invoke import task, Collection import sys sys.path.append('/my/proj/release') from serv_tasks import serv_tasks ns = Collection() serv_tasks(ns, 'serv.n3', 'speechmusic_dash') ''' pactl_test: build_image docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} pactl stat paplay_test_that_is_loud: build_image docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} paplay /usr/local/lib/python2.7/dist-packages/pygame/examples/data/whiff.wav pygame_test: build_image docker run --rm -it --cap-add SYS_PTRACE --net=host -e SDL_AUDIOSERVER=pulseaudio -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} python -c 'import os; print os.environ; import pygame.mixer; pygame.mixer.init()' local_run: build_image docker run --rm -it -p ${PORT}:${PORT} \ --name=$(JOB)_local \ --net=host \ --mount type=tmpfs,destination=/tmp,tmpfs-size=52428800 \ -v /tmp/pulseaudio:/tmp/pulseaudio \ ${TAG} \ python playSound.py -v '''