ebaauw / homebridge-music

Homebridge plugin for iTunes with AirPlay speakers
Apache License 2.0
92 stars 7 forks source link

Config Error #3

Closed lespatots closed 6 years ago

lespatots commented 6 years ago

When I add the Music platform to the config, I get the following error at start up:

[2018-4-28 16:47:39] [mqtt] Number of cached Accessories: 0 [2018-4-28 16:47:39] [mqtt] clientId = homebridge-mqtt_5728e034 [2018-4-28 16:47:39] [mqtt] Connecting.. Error: spawn osascript ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) at onErrorNT (internal/child_process.js:379:16) at process._tickCallback (internal/process/next_tick.js:114:19) at Function.Module.runMain (module.js:692:11) at startup (bootstrap_node.js:194:16) at bootstrap_node.js:666:3 Am I missing a depandancy?

ebaauw commented 6 years ago

Are you running homebridge on macOS? For running homebridge automatically, see #2.

lespatots commented 6 years ago

No its running on a Pi and I don't run it automatically? OH!, it only runs on a Mac, doesn't quite say that anywhere?

ebaauw commented 6 years ago

https://github.com/ebaauw/homebridge-music#prerequisites

homebridge-music uses Applescript (through osascript) to talk to iTunes. That only runs on macOS.

I’ll see if I can check for the OS and issue an error if it’s anything else.

lespatots commented 6 years ago

I see its there in the prerequisites. However, its a bit like a software agreement, you give up before the end. Would you consider moving the key line to be the first paragraph!

I guess if I really want to do this I could run a second instance of Homebridge on my Mac?

Sorry to waste your time!

ebaauw commented 6 years ago

In v0.1.4