Hi i have a error at start pimatic
if i start pimatic.js i get this error:
14:35:47.839 2015-04-08 Wednesday
14:36:04.754 [pimatic] Starting pimatic version 0.8.62
14:36:07.164 [pimatic] Startup error: Error: Parse error on line 2:
14:36:07.164 [pimatic]> “//”: "Please only chang
14:36:07.164 [pimatic]>------^
14:36:07.164 [pimatic]>Expecting ‘EOF’, ‘}’, ‘,’, ‘]’, got ':'
14:36:07.164 [pimatic]> at Object.parseError (/home/pimatic-app/node_modules/pimatic/node_modules/cjson/node_modules/jsonlint/lib/jsonlint.js:55:11)
14:36:07.164 [pimatic]> at Object.parse (/home/pimatic-app/node_modules/pimatic/node_modules/cjson/node_modules/jsonlint/lib/jsonlint.js:132:22)
14:36:07.164 [pimatic]> at Object.exports.parse (/home/pimatic-app/node_modules/pimatic/node_modules/cjson/node_modules/jsonlint/lib/jsonlint.js:417:53)
14:36:07.164 [pimatic]> at Object.exports.parse (/home/pimatic-app/node_modules/pimatic/node_modules/cjson/index.js:88:28)
14:36:07.164 [pimatic]> at Framework._loadConfig (/home/pi/framework.coffee:97:24)
14:36:07.164 [pimatic]> at new Framework (/home/pi/framework.coffee:55:8)
14:36:07.164 [pimatic]> at /home/pi/startup.coffee:48:21
14:36:07.164 [pimatic]> at tryCatcher (/home/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/util.js:24:31)
14:36:07.164 [pimatic]> at Function.Promise.attempt.Promise.try (/home/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/method.js:31:24)
14:36:07.164 [pimatic]> at Object.module.exports.startup (/home/pi/startup.coffee:47:10)
14:36:07.164 [pimatic]> at run (/home/pimatic-app/node_modules/pimatic/pimatic.js:15:24)
14:36:07.164 [pimatic]> at Object.<anonymous> (/home/pimatic-app/node_modules/pimatic/pimatic.js:20:3)
14:36:07.164 [pimatic]> at Module._compile (module.js:456:26)
14:36:07.164 [pimatic]> at Object.Module._extensions…js (module.js:474:10)
14:36:07.164 [pimatic]> at Module.load (module.js:356:32)
14:36:07.164 [pimatic]> at Function.Module._load (module.js:312:12)
14:36:07.164 [pimatic]> at Function.Module.runMain (module.js:497:10)
14:36:07.164 [pimatic]> at startup (node.js:119:16)
14:36:07.164 [pimatic]> at node.js:902:3
14:36:07.200 [pimatic] exiting…
this ist my config:
"//": "Please only change this file when pimatic is NOT running, otherwise pimatic will overwrite your changes.",
"settings": {
"httpServer": {
"enabled": true,
"port": 5002,
"debug": true,
"logLevel": "debug"
},
"database": {
"deviceAttributeLogging": [
{
"deviceId": "*",
"attributeName": "*",
"type": "*",
"interval": "0",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "*",
"type": "continuous",
"interval": "5min",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "temperature",
"type": "number",
"expire": "1y"
},
{
"deviceId": "*",
"attributeName": "humidity",
"type": "number",
"expire": "1y"
}
],
"messageLogging": [
{
"level": "*",
"tags": [],
"expire": "7d"
},
{
"level": "debug",
"tags": [],
"expire": "0"
}
]
},
"authentication": {
"secret": "y9hs8rSYUU4XSqVT1wGaORQqwsCvFQOejL/uTIWH2MzpB33jeDPaosCKYXCiZ5Wx+DEMpCcQwsEdLFSuS5r+Ng=="
},
"httpsServer": {},
"gui": {}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "ping"
},
{
"plugin": "mobile-frontend"
},
{
"plugin": "homeduino",
"driver": "gpio",
"driverOptions": {},
"receiverPin": 1,
"transmitterPin": 0
},
{
"plugin": "pushover",
"user": "ubs1knEqh6d8f8eajU4UwomDsV84X6",
"token": "aGqagECwKBn5KfqFYDasJ7mDUa3zgL"
},
{
"plugin": "max-thermostat",
"host": "192.168.178.74",
"port": 62910
},
{
"plugin": "weather"
},
{
"plugin": "sunrise",
"latitude": 49.504333,
"longitude": 7.83735
},
{
"plugin": "dhtxx"
},
{
"plugin": "mail"
},
{
"plugin": "openweather"
},
{
"plugin": "sysinfo"
},
{
"plugin": "shell-execute"
}
],
"devices": [
{
"id": "my-sensor",
"name": "dht22 example",
"class": "DHTxxSensor",
"type": 22,
"gpio": 23,
"interval": 6000
},
{
"class": "SystemSensor",
"id": "syssensor",
"name": "System",
"attributes": [
{
"name": "cpu"
},
{
"name": "memory"
},
{
"name": "diskusage",
"path": "/"
},
{
"name": "dbsize"
},
{
"name": "temperature",
"interval": 5000
}
]
},
{
"id": "weather",
"class": "WeatherDevice",
"name": "Wetter in Kaiserslautern",
"location": "Kaiserslautern, Germany",
"degreeType": "C",
"lang": "de-DE",
"timeout": 3600000
},
{
"id": "sonnenaufgang",
"name": "Sonnenaufgang",
"class": "ShellSensor",
"attributeName": "time",
"attributeType": "string",
"attributeUnit": "",
"command": "curl -s http://weather.yahooapis.com/forecastrss?w=12835500|grep astronomy| awk -F\\\" '{print $2}'|{ date -f - +%R; }",
"interval": 43200
},
{
"id": "sonnenuntergang",
"name": "Sonnenuntergang",
"class": "ShellSensor",
"attributeName": "time",
"attributeType": "string",
"attributeUnit": "",
"command": "curl -s http://weather.yahooapis.com/forecastrss?w=12835500|grep astronomy| awk -F\\\" '{print $4}'|{ date -f - +%R; }",
"interval": 43200
},
{
"id": "Wanddose3",
"name": "Wanddose 3",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 2,
"id": 6311046
}
}
]
},
{
"id": "Wanddose2",
"name": "Wanddose 2",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 1,
"id": 6311046
}
}
]
},
{
"id": "WanddosePC",
"name": "Wanddose Computer",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 0,
"id": 6311046
}
}
]
},
{
"id": "TV",
"name": "TV",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 0,
"id": 15896446
}
}
]
},
{
"id": "TVLight",
"name": "TV Licht",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 1,
"id": 15896446
}
}
]
},
{
"id": "Leiste2",
"name": "Steckdosen Leiste Fenster",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch1",
"options": {
"unit": 2,
"id": 15896446
}
}
]
},
{
"id": "jo",
"name": "my smartphone",
"class": "PingPresence",
"host": "192.168.178.50",
"interval": 10000
},
{
"id": "SchlafzimmerFensterLinks",
"class": "MaxThermostatDevice",
"name": "Heizung Schlafzimmer Fenster links",
"deviceNo": "0f7022",
"comfyTemp": 20,
"ecoTemp": 15,
"actTemp": 17,
"mode": "auto",
"battery": "ok"
},
{
"id": "WohzimmerFenster",
"class": "MaxThermostatDevice",
"name": "Heizung Wohnzimmer Fenster",
"deviceNo": "0f6d75",
"comfyTemp": 21,
"ecoTemp": 15,
"actTemp": 17,
"mode": "auto",
"battery": "ok"
},
{
"id": "window-livingroom",
"class": "MaxContactSensor",
"name": "Wohnzimmer Balkontuer",
"deviceNo": "10951e"
}
],
"rules": [
{
}
],
"pages": [
{
"id": "wohnzimmer",
"name": "Wohnzimmer",
"devices": [
{
"deviceId": "WohzimmerFenster"
},
{
"deviceId": "WanddosePC"
},
{
"deviceId": "Wanddose3"
},
{
"deviceId": "TV"
},
{
"deviceId": "Leiste2"
},
{
"deviceId": "TVLight"
},
{
"deviceId": "my-sensor"
},
{
"deviceId": "window-livingroom"
}
]
},
{
"id": "schalfzimmer",
"name": "Schalfzimmer",
"devices": [
{
"deviceId": "Wanddose2"
},
{
"deviceId": "SchlafzimmerFensterLinks"
}
]
},
{
"id": "bad",
"name": "Bad",
"devices": []
},
{
"id": "kuche",
"name": "Küche",
"devices": []
},
{
"id": "esszimmer",
"name": "Esszimmer",
"devices": []
},
{
"id": "diele",
"name": "Diele",
"devices": []
},
{
"id": "system",
"name": "System",
"devices": [
{
"deviceId": "syssensor"
},
{
"deviceId": "jo"
},
{
"deviceId": "my-sensor"
},
{
"deviceId": "weather"
},
{
"deviceId": "sonnenaufgang"
},
{
"deviceId": "sonnenuntergang"
}
]
}
],
"groups": [
{
"id": "steckdosen",
"name": "Steckdosen",
"devices": [
"WanddosePC",
"Wanddose3",
"Wanddose2",
"TV",
"TVLight",
"Leiste2"
],
"rules": [],
"variables": []
},
{
"id": "heizung",
"name": "Heizung",
"devices": [
"SchlafzimmerFensterLinks",
"WohzimmerFenster"
],
"rules": [],
"variables": []
}
],
"users": [
{
"username": "admin",
"password": "admin",
"role": "admin"
}
],
"roles": [
{
"name": "admin",
"permissions": {
"pages": "write",
"rules": "write",
"variables": "write",
"messages": "write",
"events": "write",
"devices": "write",
"groups": "write",
"plugins": "write",
"updates": "write",
"database": "write",
"config": "write",
"controlDevices": true,
"restart": true
}
}
],
"variables": []
}
i have look in google for the errror but I don´t find help.