12-31-2023, 07:04 PM
I've taken a stab at the beginnings of a REST API using Python3 and a tool called FAST API and uvicorn. I've got it running on the pi zero 2w and configured systemd to start it automatically.
The approach I took was to try to do what MPC and vol.sh do. The API is making system calls to run mpc, but does its own work to emulate what Tim has coded in vol.sh. I didn't implement everything that MPC offers. Instead, I went after a subset that I find useful. Testing has been minimal and I've only made it functional, not bullet proof. I don't code for a living. I'm a telecomm/voip engineer in my day job.
I'm also thinking of adding a couple of things from moodeutl. Below is a link to a PDF of the swagger page generated by FAST API. Will you please give it a look? Feedback is appreciated.
https://drive.google.com/drive/folders/1...sp=sharing
Thanks for your consideration,
Tom Lynn
The approach I took was to try to do what MPC and vol.sh do. The API is making system calls to run mpc, but does its own work to emulate what Tim has coded in vol.sh. I didn't implement everything that MPC offers. Instead, I went after a subset that I find useful. Testing has been minimal and I've only made it functional, not bullet proof. I don't code for a living. I'm a telecomm/voip engineer in my day job.
I'm also thinking of adding a couple of things from moodeutl. Below is a link to a PDF of the swagger page generated by FAST API. Will you please give it a look? Feedback is appreciated.
https://drive.google.com/drive/folders/1...sp=sharing
Thanks for your consideration,
Tom Lynn