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