Code Monkey home page Code Monkey logo

node-roon-api-volume-control's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

khazul mytek-inc

node-roon-api-volume-control's Issues

Function 'set_mute' not working

Hi,

Function 'set_mute' is not working with the latest version of Roon 1.4 (306).
The 'req' object now contains the 'on'/'off' value for mute in req.body.mode, but the function written here is trying to access it under req.body.action.

Fix can be done in two ways:
1/ fix Roon to pass the value in req.body.action
Then no update is needed on this function
2/ update the 'set_mute' function to use req.body.mode

Thanks,
Stefan

new_device cannot be called twice in a session

As mentioned in #2 there is another issue with registering of new controls.
Apparently the roon server does not accept a second call to "new_device"

RoonApiVolumeControl.prototype.new_device = function(o) {

The first time it is called it succeeds. If you then destroy this subscription and call new_device again the new control is not registered. Together with #2 this results to the following.

does not work since it should be (at least I think)

this._svc.send_continue_all('subscribe_controls', "Changed", { controls_removed: [ o.state.control_key ] });

If changed like this roon server successfully de-registers the control

  • Calling new_device again fails (I am not sure why)
    The extension sends the request to the server but it is apparently ignored resulting in no volume control.

I tried this for testing with a simplified version of the meridian extension.

Reproducing is quite simple, just modify the configuration which then results in a new setup call.

How to implement volume control which supports only volumeUp/Down

I want to implement a volume control for a device which supports only volumeUp / Down.
I guess volume_type is the place where I can define it. As there is no documentation I was searching in samples and found only 'number' or 'db".

How can I implement a volume control with "volumeUp" and "volumeDown" ?

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.