diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 10:24:34 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 10:24:34 +1300 |
| commit | 31516d80bd1ca384074fd61b3c73879b5be2f0ac (patch) | |
| tree | 97ee06e4f52b40b161afdf358a1a967fef3cadae /backend.py | |
| parent | 7033b06aa0abaa4d07dac1ea465d6f1ec25dfa43 (diff) | |
| download | remote-automation-31516d80bd1ca384074fd61b3c73879b5be2f0ac.tar.xz remote-automation-31516d80bd1ca384074fd61b3c73879b5be2f0ac.zip | |
volume control
Diffstat (limited to 'backend.py')
| -rw-r--r-- | backend.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -130,5 +130,14 @@ def music_stop(): return {"status": "not_playing"} [email protected]("/automate/volup") +def volup(): + os.system("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+") + + [email protected]("/automate/voldown") +def voldown(): + os.system("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-") + if __name__ == "__main__": app.run(host="0.0.0.0", port=6732) |
