Compare commits

..

1 commit

Author SHA1 Message Date
03cb915fa5 Add actual ringing 2018-02-06 01:42:11 +01:00

View file

@ -4,8 +4,8 @@ Sonnez via le réseau local. C'est cool, hein ?
"""
from datetime import datetime, timedelta
import subprocess
from flask import Flask, render_template, request
import subprocess
app = Flask('sonnetteweb')
@ -31,7 +31,7 @@ class Ringer:
subprocess.run(['bash',
'-c',
'aplay ringtone.wav &'])
'mplayer -ao alsa:device=hw=1.0 ringtone.ogg &'])
return True