我的配置文件有问题。现在 JSONLint 说:
Error: Parse error on line 9:
...}, "description": "Jannen HomeKit”,
---------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
看来我的格式有一些问题。
{
"bridge": {
"name": "jHomebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-156"
},
"description": "Jannen HomeKit”,
"accessories": [
{
"accessory": "Applescript",
"name": ”Videon katselu”
"on": "tell application ’’Chrome’’ to open location ’’www.youtube.fi’’”,
"off": "tell application ’’Chrome’’ to open location ’’www.youtube.fi’’"
}
],
"platforms": [
{
"platform" : "WeMo Platform",
"name" : "WeMo Platform"
"expected_accessories" : "0",
"timeout" : "25",
"no_motion_timer": "60",
"homekit_safe" : "1"
}
]