Hey,
my name is Flo and I’m new in this forum and new in pimatic. Actually I came to pimatic because I found a tutorial (link text) which explains how to controll my Senseo coffeemachine via web interface. Since the tutorial is a bit older (from 2014) and I’m using a raspberry pi 3b (with Raspbian) the used image isn’t working anymore so I had to setup my own. First I installed pimatic and pilight and anyway came to the point that I was able to connect to the web interface but then I realized that I don’t need pilight anymore and after installing/uninstalling of pllugins, editing the config.json and so on I erased the whole sd card and started to begin from the beginning.
Hopefully I am in the right section with this topic. I used the search engine and google and found a few people with the same problem but no working solution. My problem is that I can’t open the web interface neither with my macbook nor with my iPhone so I’m not even able to test if the coffeemachine is working.
I start pimatic with sudo service pimatic start
then I go to http://192.168.0.4:5001 but I only get the “unable to connect” screen… Am I doing it wrong? With the pilight web GUI everything worked fine.
Here is my config.json (which I always stopped before editing):
{
"//": "Please only change this file when pimatic is NOT running, otherwise pimatic will overwrite your changes.",
"settings": {
"httpServer": {
"enabled": true,
"port": 5001
},
"database": {
}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "gpio"
},
{
"plugin": "mobile-frontend",
}
],
"devices": [
{
"id": "buttons5",
"name": "Kaffee",
"class": "ButtonsDevice",
"buttons": [
{
"id": "kaffeemake",
"text": "Start"
}
]
},
{
"id": "buttons6",
"name": "Kaffee Steuerung",
"class": "ButtonsDevice",
"buttons": [
{
"id": "kaffeean",
"text": "An-Aus"
},
{
"id": "kaffeestart",
"text": "Start"
},
{
"id": "kaffeeclean",
"text": "Reinigen"
}
]
},
{
"id": "flo_iphone",
"name": "my smartphone",
"class": "PingPresence",
"host": "192.168.0.6",
"intervall": 10000
}
],
"rules": [
{
"id": "kaffee-an",
"name": "kaffee_an",
"rule": "if kaffeean is pressed then turn Kaffee_An on for 5 seconds",
"active": true,
"logging": true
},
{
"id": "kaffee-make",
"name": "kaffee_make",
"rule": "if kaffeemake is pressed then turn Kaffee_An on for 5 seconds and after 70 seconds push title:\"Kaffee fertig!\" message:\"Kaffee!\" priority:1 and after 70 seconds turn Kaffee_Start on for 5 seconds",
"active": true,
"logging": true
},
{
"id": "kaffee-start",
"name": "kaffee_start",
"rule": "if kaffeestart is pressed then turn Kaffee_Sart on for 5 seconds",
"active": true,
"logging": true
},
{
"id": "kaffee-clean",
"name": "kaffee_clean",
"rule": "if kaffeeclean is pressed then turn Kaffee_An on for 5 seconds and after 70 seconds turn Kaffee_Start on for 5 seconds and after 50 seconds turn Kaffee_An on for 5 seconds",
"active": true,
"logging": true
}
],
"pages": [
{
"id": "favourite",
"name": "Favourites",
"devices": []
}
],
"groups": [
],
"users": [
{
"username": "flow",
"password": "2mhbff",
"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
}
}
]
}
in addition I have these config.json.pl file in the same direction:
{
"living": {
"name": "Home",
"kfon": {
"name": "Kaffee_An",
"uuid": "0000-00-00-3e-186703",
"protocol": [ "relay" ],
"id": [{
"gpio": 3
}],
"state": "off"
},
"kfstart": {
"name": "Kaffee_Start",
"uuid": "0000-00-00-3e-186703",
"protocol": [ "relay" ],
"id": [{
"gpio": 4
}],
"state": "off"
}
}
}
Every plugin in the config file is installed. Is it maybe a problem that I installed and included plugins which I am not using yet? I hope the problem is not that I work out to nonsense…
I am thankful for every help that could help me getting the web interface started or maybe someone finds an other problem which I couldn’t see yet because I wasn’t even able to test something.
best regards
Flo
edit: Here the daemon.log I erased a few lines which I think I don`t need and which enden in errors.
23:03:03.361 2018-02-01 Thursday
23:03:13.295 [pimatic] info: Starting pimatic version 0.9.42
23:03:13.707 [pimatic] error: Invalid config: Property "keyfile" is not a valid property in /settings/httpsServer, Property "certfile" is not a valid property in /settings/httpsServer
23:03:14.859 [pimatic] error: Startup error: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
23:03:14.859 [pimatic] error:> at Error (native)
23:03:14.859 [pimatic] error:> at Object.createSecureContext (_tls_common.js:87:19)
23:03:14.859 [pimatic] error:> at Server (_tls_wrap.js:737:25)
23:03:14.859 [pimatic] error:> at new Server (https.js:17:14)
23:03:14.859 [pimatic] error:> at Object.exports.createServer (https.js:37:10)
23:03:14.859 [pimatic] error:> at Framework._setupExpressApp (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:477:34)
23:03:14.859 [pimatic] error:> at new Framework (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:87:8)
23:03:14.859 [pimatic] error:> at /home/pi/pimatic-app/node_modules/pimatic/startup.coffee:94:17
23:03:14.859 [pimatic] error:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
23:03:14.859 [pimatic] error:> at Function.Promise.attempt.Promise.try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/method.js:39:29)
23:03:14.859 [pimatic] error:> at Object.startup (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:93:10)
23:03:14.859 [pimatic] error:> at run (/home/pi/pimatic-app/node_modules/pimatic/pimatic.js:15:24)
23:03:14.859 [pimatic] error:> at /home/pi/pimatic-app/node_modules/pimatic/lib/daemon.coffee:87:9
23:03:14.859 [pimatic] error:> at FSReqWrap.oncomplete (fs.js:82:15)
23:03:14.873 [pimatic] info: exiting...
23:06:09.992 2018-02-01 Thursday
22:33:29.394 2018-02-01 Thursday
23:08:35.433 2018-02-01 Thursday