is it possible to use the “Command line client” (Command line client | Volumio Developers Documentation) in a python program?
I tried it by simply adding the commands (with and without volumio in front of it) but it doesn’t work.
I especially would like to use these:
vstart
vstop
vrestart
In PuTTY they work via ssh when i put volumio in front of them.
Could i use them in a python script, and if so, could you help me how i would have to start correctly?
python-modul ‘os’ does it,
quick&dirty @ volumio console:
volumio@volumioboss:~$ python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('volumio pause')
{"time":1682607207189,"response":"pause Success"}0
>>> os.system('volumio play')
{"time":1682607214766,"response":"play Success"}0
<CTRL-D>
volumio@volumioboss:~$