Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: REST API
#3
(11-02-2022, 10:25 AM)Tim Curtis Wrote: There are already ways to control moOde remotely and get status via http so it would be better to be more specific about what you want to accomplish instead of just saying make a REST API or a plugin for Home Assistant.

Hi Tim,

I would like to write a python script to control playback, get status of volume, get information about song or radio stream being played, etc.

When you write that there is already a way to control moOde remotely and get status via http, where do I look for documentation or examples?

I thought I may be able to start with something simple myself and tried doing this: 
curl http://moode/command/?cmd=status
and I get no return. I found a post where you mentioned un-commenting an echo $resp in /var/www/command/index.php , but looking at /var/www/command/index.php I don't see an echo $resp being commented out.

To be clear, I want to control moOde playback, not MPD.

Thanks

Edit: Or would you recommend that I direct attention to controlling MPD?
Reply


Messages In This Thread
REST API - by gwurb - 11-02-2022, 10:16 AM
RE: REST API - by Tim Curtis - 11-02-2022, 10:25 AM
RE: REST API - by gwurb - 11-02-2022, 10:38 AM
RE: REST API - by dresdner353 - 03-22-2023, 10:01 AM
RE: REST API - by Tim Curtis - 11-02-2022, 11:15 AM
RE: REST API - by gwurb - 11-02-2022, 11:31 AM
RE: REST API - by TheOldPresbyope - 11-02-2022, 11:41 AM
RE: REST API - by andib - 12-10-2022, 06:55 PM
RE: REST API - by adam_zzz - 02-18-2023, 08:19 PM
RE: REST API - by Tim Curtis - 02-18-2023, 09:23 PM

Forum Jump: