NorthernMan54 / homebridge-cmd-television

20 stars 1 forks source link

Config Syntax Error Config contains invalid JSON #5

Closed Geezle27 closed 2 years ago

Geezle27 commented 2 years ago

Thanks for this, I really appreciate the work that goes into these.

I was following your instruction on how to set this up. I was able to pair it with my AppleTV and get the credentials. When I go to configure it, using your example I get the following Error from Homebridge

Config Syntax Error Config contains invalid JSON

I have updated the IP address to my AppleTV's I think my issue is that I am not sure on how to edit the credential file? Do I need to do that?

I am running Homebridge on Synology Docker and used the most recent update to the Readme to get it set up.

This is what I have for my config

{
    "accessory": "cmd-television",
    "name": "AppleTV"
    "oncmd": "atvremote -s 192.168.1.3 --airplay-credentials `cat ~/atv.cred` turn_on",
}

Any help would be greatly appreciated.

Geezle27 commented 2 years ago

Figured out my JSON error. Missed a Comma.