Beetle-II / lumi

MQTT агент для шлюза Xiaomi DGNWG05LM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPD error: Connection refused

freefelt opened this issue · comments

root@OpenWrt:/tmp# node /opt/lumi/lumi.js
 mqtt_client.connect
MPD error: Connection refused
child_process.js:866
    throw err;
    ^

Error: Command failed: mpc current --format '%name% - %artist% - %title%'
MPD error: Connection refused

    at checkExecSyncError (child_process.js:790:11)
    at Object.execSync (child_process.js:863:15)
    at getPlay (/opt/lumi/gateway.js:284:32)
    at Object.getState (/opt/lumi/gateway.js:183:5)
    at MqttClient.<anonymous> (/opt/lumi/mqtt_client.js:10:13)
    at MqttClient.emit (events.js:412:35)
    at Readable.<anonymous> (/opt/lumi/node_modules/mqtt/lib/client.js:1570:14)
    at Readable.emit (events.js:400:28)
    at endReadableNT (/opt/lumi/node_modules/readable-stream/lib/_stream_readable.js:1094:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  status: 1,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(30) [Uint8Array] [
       77,  80,  68,  32, 101, 114, 114,
      111, 114,  58,  32,  67, 111, 110,
      110, 101,  99, 116, 105, 111, 110,
       32, 114, 101, 102, 117, 115, 101,
      100,  10
    ]
  ],
  pid: 9884,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(30) [Uint8Array] [
     77,  80,  68,  32, 101, 114, 114,
    111, 114,  58,  32,  67, 111, 110,
    110, 101,  99, 116, 105, 111, 110,
     32, 114, 101, 102, 117, 115, 101,
    100,  10
  ]
}