Create your own Gladys widgets?

Good evening!

I don’t know if the topic has already been discussed previously (I searched without really finding what I wanted :thinking:), but I was wondering if it’s possible to create your own « widgets »? Let me explain :sweat_smile: I use MPD (Music Player Daemon) to stream music at home, and I currently control it via an Android interface. Ideally, I would have liked to be able to use Gladys interactively (« play », « pause », « stop », « next » would be the minimal actions…) knowing that the MPD/REST API wrapper is fully functional as a container, and that Gladys already starts soundscapes in scenes via HTTP requests… I’m putting this out there for geeks like me :slight_smile:

Have a nice evening :slight_smile:

Hi @jean_bruder :slightly_smiling_face:

We already have a music widget in Gladys, the only thing missing is an MPD integration to make everything work!

If MPD offers a REST API, it should be pretty straightforward to develop. And since Gladys is an open-source project, the idea is really to share everyone’s efforts for the benefit of the whole community. It would be a shame for useful code to sit in a corner without being shared with others :wink:

I don’t know if you had a chance to watch my live coding on the Sonos integration, but the backend part should give you a lot of inspiration:

And if you get stuck on anything, I’m always available to give you a hand!

1 Like