musicbeeremote / mbrc-plugin

MusicBee Remote Plugin
http://mbrc.kelsos.net
Other
114 stars 13 forks source link

Embedded Web application #16

Open kelsos opened 9 years ago

kelsos commented 9 years ago

Add an embedded web application that will use Websockets to implement the notification protocol. The web application will be used in systems where a native application is not available (iOS/Windows Phone etc).

Erimus-Koo commented 4 years ago

It sounds great.

I'm a rookie user of home assistant. Maybe some open API can make musicbee be remote by home assistant. And home assistant merged "home bridge", so maybe can use Home App(iOS/apple TV/mac) to remote control musicbee.

Integrations - Home Assistant

kelsos commented 4 years ago

Hi @Erimus-Koo I will have a look to see how possible it is to use something like this. Currently, the problem with the API is that it's a pure TCP socket implementation that doesn't talk any standard protocol so it is harder to interface with anything.

Erimus-Koo commented 4 years ago

Thanks for your time. I've tried to read some docs like: Creating your first integration · Home Assistant dev docs, but still many problems.

So I wrote a little service to receive 'key' from computer in LAN, and 'replay' the keys on local, utility/remote_key_service.py. I can remote control the player by media keys now, and home assistant can use command line as buttons. Just some basic feature, play/pause/next/prev. I still look forward to your full-featured web app.

nitzanbueno commented 3 years ago

Hi @Erimus-Koo I will have a look to see how possible it is to use something like this. Currently, the problem with the API is that it's a pure TCP socket implementation that doesn't talk any standard protocol so it is harder to interface with anything.

Hey, are you planning on changing the protocol to WebSocket anytime soon? If not, it might be possible to write a WebSocket server that proxies to the TCP socket.

kelsos commented 3 years ago

Hey @nitzanbueno at the moment I am not directly planning to do that. I need to get an initial version of v2.0.0 of the application ready and then I will deal with that.

nitzanbueno commented 3 years ago

OK. At the moment, I'm working on a websocket proxy server and web client, if you're interested.

nitzanbueno commented 3 years ago

I forked your project and switched SocketServer for a WebSocket server written with Fleck. I also made a web client to go along with it, if you'd like to take a look. Thanks for the great work!

kelsos commented 3 years ago

Fleck is what I had in mind too. I will take a look when I find time :)