maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
393 stars 115 forks source link

How to actually run commands? #109

Closed parkerlreed closed 4 years ago

parkerlreed commented 4 years ago

image

The command list at http://localhost:8282/hubs/harmony-hub/devices/linux-computer/commands works great. Whenever I try to run any of the commands, I'm failing miserably

parkerlreed commented 4 years ago

http://localhost:8282/hubs/harmony-hub/devices/linux-computer/commands/volume-down

results in

Cannot GET /hubs/harmony-hub/devices/linux-computer/commands/volume-down

This is what my main page looks like. image

The first time I tried I was attempting to use the example from the README and then I noticed that page listed it differently. I can't get it working either way.

parkerlreed commented 4 years ago

Ok, realized I was being dumb and not posting

[parker@stealth harmony-api]$ curl -X POST http://localhost:8282/hubs/harmony-hub/devices/linux-computer/commands/volume-down
{"message":"ok"}

worked