Support for environment variables #1

Merged
lucas merged 2 commits from envconfig into master 2022-10-18 15:21:51 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit d8e93ed525 - Show all commits

View File

@ -64,8 +64,9 @@ var simpleanswer = {state: "unknown", lastchange: 0, power: 0};
var ippoll = new IpPoll("rpi3.raum.ctdo.de"); var ippoll = new IpPoll("rpi3.raum.ctdo.de");
var flukso = new Flukso("flukso.raum.ctdo.de", "/sensor/cf00e0b22230f4a8870af58f2b8719dd"); var flukso = new Flukso(process.env.FLUKSO_HOST || "flukso.raum.ctdo.de",
var mqtt = mqttClient.connect('mqtt://raum.ctdo.de'); process.env.FLUKSO_URL || "/sensor/cf00e0b22230f4a8870af58f2b8719dd");
var mqtt = mqttClient.connect(process.env.MQTT_SERVER || 'mqtt://mqtt.ctdo.de');
var connected = false; var connected = false;
//express js settings //express js settings