Code Monkey home page Code Monkey logo

roon-discord-rp's Introduction

Roon Integration for Discord Rich Presence

Attention! 2022 Update

As much as I enjoyed creating this a few years ago, I do not have time to maintain this at present. If Discord implement a better images system for RP and/or Roon improve extension integration I my revisit this. In the meantime I recommend using this implementation.

Use

At this point in time you have to install NPM and run yourself. Installer is a feature to come.

Why are there no images?

We need Discord to allow more than 150 assets as there's a lot of album covers. If you want this feature then nag them.

roon-discord-rp's People

Contributors

37bird avatar 615283 avatar dependabot[bot] avatar jamesxsc avatar noahimesaka1873 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

roon-discord-rp's Issues

Docker container?

Hi James,

Not really an "Issue" per se, but have you considered containerising this? Might be a decent way of packaging/deploying/running this.

Not trying to give you work - I might take a look at this later if it's something you're open to?

Cheers,
Ed

How to make it work

What the title says, add good docs and make a good readme file as this isn't usable on it's own

I have an idea.

with RoonApiImage we can have album cover display via image_key.
like :
_image.get_image(image, {
scale: 'fit',
width: 60,
height: 60
}, (eror, content_type, body) => {
console.log(eror)
console.log(content_type)
console.log(body)
client.updatePresence({...});

How to use this?

How do I use this? Why is there no guide or description on how to use this and nothing in readme about what it does or how to use it? Did you just assume that every audiophile is a java developer?

Activity won't show up in Discord.

I think everything is set up properly. While running, I can see my activity in the CLI. However, my activity won't show up in Discord. It may be related to this error shown at the service's initialization:

(node:15420) UnhandledPromiseRejectionWarning: Error: connection closed
at IPCTransport. (roon-discord-rp\node_modules\discord-rpc\src\client.js:111:16)
at Object.onceWrapper (events.js:520:26)
at IPCTransport.emit (events.js:400:28)
at roon-discord-rp\node_modules\discord-rpc\src\transports\ipc.js:141:18
at decode (roon-discord-rp\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket. (roon-discord-rp\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (events.js:400:28)
at emitReadable_ (internal/streams/readable.js:555:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(Use node --trace-warnings ... to show where the warning was created)
(node:15420) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https:/
/nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15420) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Not sure what it means exactly, aside that a promise was rejected and unhandled. Am I missing a step or is something broken?

Unexpected error ws library

Hi !

I got some problem launching your program recently. Every time now, I got this message error :

C:\Users\raeig\Desktop\roon-discord-rp-master>node roon-discord-rp.js
events.js:292
throw er; // Unhandled 'error' event
^

Error: Unexpected server response: 400
at ClientRequest. (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:542:5)
at ClientRequest.emit (events.js:315:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at Socket.socketOnData (_http_client.js:469:22)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
Emitted 'error' event on WebSocket instance at:
at abortHandshake (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:649:15)
at ClientRequest. (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:542:5)
[... lines matching original stack trace ...]
at Socket.Readable.push (_stream_readable.js:212:10)

I tried to reinstall it multiple times on different drive, but nothing changed. I'm a noob with node, js and everything around, so hard to tell if I did something wrong, except doing and npm install and node roon-xx.js.
Can be noted that it worked many times before.
Is there any way to fix it ?

Thank you btw for providing this program :)

How does one exactly install this?

For anyone who's installed this, can you take me step by step on how to install this exactly? I have the node_modules installed, but I have no clue how to continue. A nod in the right direction would be much appreciated.

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.