harmony-api icon indicating copy to clipboard operation
harmony-api copied to clipboard

Feature Request: Go to channel endpoint

Open farooqu opened this issue 8 years ago • 3 comments

A possibly useful feature would be to have an endpoint that allows you to specify a channel to go to, something like:

POST harmony-api/hub/:hubSlug/command/tune/13.1

This would have to check that all of the keys are available, and then to send actions for all of them. This seems kind of out of place with the rest of the endpoints, but might be useful. Though I can see an argument for not including it in harmony-api, and rather relying on the caller to send individual commands. Though including it would facilitate one single request, rather than 3 or more, and would also allow for better IFTTT integration.

I'm willing to implement this in my fork and create a pull request, but wanted some feedback before I started.

farooqu avatar Dec 02 '16 03:12 farooqu

I'm not really interested in that tbh. This was never meant to be a remote control per se.

What could be more interesting though, is macros. Kind of like the presets in node-sonos-http-api.

You could write them in json, and trigger them by name. Then harmony-api could have control over the timing of the execution of the commands. Then you could just pre-program it to do anything you wanted. Again, this is still quite the feature creep, but it's a more open implementation.

maddox avatar Dec 02 '16 04:12 maddox

If you're fine with adding macros I can get started on it.

On Thu, Dec 1, 2016, 11:00 PM Jon Maddox [email protected] wrote:

I'm not really interested in that tbh. This was never meant to be a remote control per se.

What could be more interesting though, is macros. Kind of like the presets in node-sonos-http-api https://github.com/jishi/node-sonos-http-api.

You could write them in json, and trigger them by name. Then harmony-api could have control over the timing of the execution of the commands. Then you could just pre-program it to do anything you wanted. Again, this is still quite the feature creep, but it's a more open implementation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maddox/harmony-api/issues/49#issuecomment-264368083, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjWLJ4weSoXjf73VONgmsUpQWkDok8Iks5rD5fRgaJpZM4LCLOE .

farooqu avatar Dec 02 '16 04:12 farooqu

sure go for it

maddox avatar Dec 02 '16 05:12 maddox