Comments (5)
All of the POST
methods effect change in state and are POST
for a reason. They should not be GET
as that method is just for reading state.
Is there a reason you need them to be GET
methods instead?
from harmony-api.
Yes, I have a particular proprietary product (wifi remote control, MX-5000 from URC) that can hit an IP/PORT with a relatively simple string, but that I can't alter to do anything more. So for instance, the easiest way to make one of these devices trigger this API to provide IP/PORT and the rest of a (simple) URL as payload.
Most devices that are IP controlled and supported by this remote use relatively simple listening ports, and accept ascii or hex data over something as basic as telnet. In such a case you specify IP, port and a simple string, like "MVUP" for Volume Up on a Marantz AVP/AVR. Following the same limitations it's possible to specify the port of an http listener, but then you're limited still to some string, so in essence a URL as a browser would pass a site.
Anything more complex would likely require a 2-way module tailored for the device the MX-5000 is trying to control - and that's not something anyone outside URC can develop.
I'm not saying it's recommended or needed for anyone else, but to work with what I have, it looks like a necessity.
from harmony-api.
This would conceivably also work as PUT. Cross-referencing a number of devices that can apparently be controlled with this remote, many Yamaha (for example) seem to require PUT, which means that the remote must work as its setup software includes a suite of IP commands for those products.
from harmony-api.
¯(°_o)/¯ you could just fork it and change them to all GET
s and it would work for you.
from harmony-api.
That's all I needed to hear. :) No desire for you to incorporate this in the master whatsoever, I just need something "that works" basically to bridge the HH to my URC remote.
from harmony-api.
Related Issues (20)
- Hubs are found and then lost
- Can no longer find hub HOT 8
- errorhub { [Error: connect ECONNREFUSED] HOT 6
- Logitech reinstates local API HOT 3
- Hub not listed HOT 1
- Harmony firmware officially supports XMPP again - sort of.
- Failure when installing HOT 1
- Specifying hub_ip has not effect HOT 4
- How to actually run commands? HOT 2
- Still active? HOT 3
- Hubs not detected HOT 1
- Loosing connection to hub HOT 1
- No hubs available - random issue HOT 6
- how to use static IP for Hub ?
- No MQTT commands work HOT 1
- Get Activity Start/End Sequence?
- when ever i run script/bootstrap i receive this HOT 7
- Feature request: Please add MQTT Messages for Activity status
- Cross Domain errors when using Jquery
- list commands ok but 404 on GET HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmony-api.