henry-spanka / freeathome-api

Busch-Jaeger free@home API to control actuators
MIT License
45 stars 4 forks source link

Error when node node_modules/freeathome-api/bin/freeathome-api #33

Closed Babelbernd closed 4 years ago

Babelbernd commented 4 years ago

I get this error when typing following:

root@pi:~/home# node node_modules/freeathome-api/bin/freeathome-api 4.9.2020, 01:30:12 - INFO: Could not read/parse configuration file - Trying to use environment instead 4.9.2020, 01:30:12 - ERR: Required environment variables (hostname, username, password not set

Did i setup the config.json properly?

{ "hostname": "System-Access-Point", "username": "Installer", "password": "XXXXXXXX", "httpApi": { "enabled": true, "address": "127.0.0.1", "port": 8080 }, "wsApi": { "enabled": true, "address": "127.0.0.1", "port": 8081 }, "debug": false }

henry-spanka commented 4 years ago

Hi, the config looks correct. Make sure that you have placed the config file in your working directory.

Babelbernd commented 4 years ago

Thank you, the file was in the wrong directory .