bitfocus / companion-module-requests

Repository for tracking module requests
100 stars 11 forks source link

Module Request: Mopidy Server #89

Open jarodwsams opened 5 years ago

jarodwsams commented 5 years ago

https://www.mopidy.com/ I have a device running Mopidy server to play Spotify directly into my venue's audio console. Right now I control it via custom HTTP requests hitting a python-based port listener on the device. It would be awesome, if possible, to have a proper module to control Mopidy.

Version 1 of the module could include commands for:

McHauge commented 5 years ago

Hey, since you already are using this via presumably the generic HTTP module, would it be possible for you the find and post the specific HTTP requests for these commands. then it would be pretty simple to make a simple module for a start.

jarodwsams commented 5 years ago

There's not any built-in HTTP control for Mopidy. On the box, I have a custom python port listener that listens for specific HTTP requests, then issues appropriate mpc commands to the MPD (music player daemon, https://www.musicpd.org/) plugin connected to Mopidy. What I wanted to explore is if there's any way to remotely control an instance of MPD over the network like that. I don't know enough about it at present, but thought that someone in the community might so wanted to put it out there.

McHauge commented 5 years ago

From, what I can find on it, then Mopidy supports, both HTTP post, WebSockets and TCP (MPD. https://docs.mopidy.com/en/latest/api/http/#json-rpc

But what commands/functions do you need? then we can start with that and work our way up as we need them.

But I'm not sure if i got time for it, but this is what I found if someone wants to have a go.

murray484 commented 2 years ago

Any luck on developing this module? We also use modipy in our environment and would love to have it on companion as well.