Compare commits
1 commit
03cb915fa5
...
c2d16b7700
Author | SHA1 | Date | |
---|---|---|---|
c2d16b7700 |
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ Sonnez via le réseau local. C'est cool, hein ?
|
|||
"""
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
from flask import Flask, render_template, request
|
||||
import subprocess
|
||||
from flask import Flask, render_template, request
|
||||
|
||||
app = Flask('sonnetteweb')
|
||||
|
||||
|
@ -31,7 +31,7 @@ class Ringer:
|
|||
|
||||
subprocess.run(['bash',
|
||||
'-c',
|
||||
'mplayer -ao alsa:device=hw=1.0 ringtone.ogg &'])
|
||||
'aplay ringtone.wav &'])
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue