Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 26, 2024
1 parent fc3286b commit 2536bb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function JeedomPlatform(logger, config, api) {
});

this.DEV_DEBUG = DEV_DEBUG; // for passing by
this.USE_QUEUES = config.USE_QUEUES || 1; // 0 = NO, or 1 or 2 etc for the concurrent tasks
this.jeedomClient = require('./lib/jeedom-api').createClient(config.url, config.apikey, this, config.myPlugin);
this.rooms = {};
this.updateSubscriptions = [];
Expand Down Expand Up @@ -160,6 +161,10 @@ JeedomPlatform.prototype.ConfigCMD = function(req, res) {
this.debugLevel = req.query.value;
this.log.changeLevel(this.debugLevel);
break;
case 'changeUSE_QUEUES':
this.USE_QUEUES=parseInt(req.query.value);
this.jeedomClient.changeQueueSys(this.USE_QUEUES);
break;
default: {
const error = "Configuration inexistante";
this.log('error','ERROR CONFIG: ' + req.query.setting + ' : '+error);
Expand Down

0 comments on commit 2536bb6

Please sign in to comment.