Coder Social home page Coder Social logo

roon-mpris's People

Contributors

brucejcooper avatar

Stargazers

 avatar  avatar

Watchers

 avatar

roon-mpris's Issues

Script is logging even with default --log "none" and crashing when executed in background

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

Script crashing with TypeError: this.ws.on is not a function

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)

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.