Giter Club home page Giter Club logo

Comments (5)

maddox avatar maddox commented on September 21, 2024

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.

HVR88 avatar HVR88 commented on September 21, 2024

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.

HVR88 avatar HVR88 commented on September 21, 2024

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.

maddox avatar maddox commented on September 21, 2024

¯(°_o)/¯ you could just fork it and change them to all GETs and it would work for you.

from harmony-api.

HVR88 avatar HVR88 commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.