brucejcooper / roon-mpris Goto Github PK
View Code? Open in Web Editor NEWA script that allows you to control roon from your MPRIS based linux desktop
A script that allows you to control roon from your MPRIS based linux desktop
I'm observing strange behaviour of the script as it crashes when put to the background and the terminal is closed, probably because it doesn't have an output to log into the message "asking for position".
» roon-mpris &!
Autodiscovery of Core
asking for position
asking for position
asking for position
{
zone_id: '',
display_name: 'FiiO K9 Pro',
outputs: [
{
output_id: '',
zone_id: '',
can_group_with_output_ids: [Array],
display_name: 'FiiO K9 Pro',
source_controls: [Array]
}
],
state: 'playing',
is_next_allowed: true,
is_previous_allowed: true,
is_pause_allowed: true,
is_play_allowed: false,
is_seek_allowed: true,
queue_items_remaining: 1,
queue_time_remaining: 400,
settings: { loop: 'disabled', shuffle: false, auto_radio: true },
now_playing: {
seek_position: 17,
length: 417,
one_line: { line1: 'Night Meeting (Verges Of Time) - AstroPilot' },
two_line: { line1: 'Night Meeting (Verges Of Time)', line2: 'AstroPilot' },
three_line: {
line1: 'Night Meeting (Verges Of Time)',
line2: 'AstroPilot',
line3: 'Solar Walk II (Remastered 2019)'
},
image_key: 'e7e444f1e96e902db8ab27e29a36a14a',
artist_image_keys: [ '0c3434db483a69ae61fd66acd18a777a' ]
}
}
asking for position
Recently the script started crashing immediately with the following TypeError:
» roon-mpris
Autodiscovery of Core
asking for position
/usr/lib64/node_modules/roon-mpris/node_modules/node-roon-api/transport-websocket.js:17
this.ws.on('pong', () => this.is_alive = true);
^
TypeError: this.ws.on is not a function
at new Transport (/usr/lib64/node_modules/roon-mpris/node_modules/node-roon-api/transport-websocket.js:17:13)
at RoonApi.ws_connect (/usr/lib64/node_modules/roon-mpris/node_modules/node-roon-api/lib.js:397:23)
at Sood.<anonymous> (/usr/lib64/node_modules/roon-mpris/node_modules/node-roon-api/lib.js:143:66)
at Sood.emit (node:events:520:28)
at Socket.<anonymous> (/usr/lib64/node_modules/roon-mpris/node_modules/node-roon-api/sood.js:149:27)
at Socket.emit (node:events:520:28)
at UDP.onMessage (node:dgram:944:8)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.