some changes to global mode
This commit is contained in:
parent
47269c3633
commit
353cc61416
@ -46,8 +46,8 @@ const mqttClient = function(events) {
|
|||||||
const url = ['https://maker.ifttt.com/trigger/', mode, '/with/key/cWvECkeiyAPwmiOPBkXL2D'].join('');
|
const url = ['https://maker.ifttt.com/trigger/', mode, '/with/key/cWvECkeiyAPwmiOPBkXL2D'].join('');
|
||||||
|
|
||||||
if (mode !== globalMode) {
|
if (mode !== globalMode) {
|
||||||
logger.info('Go for change state');
|
logger.info('Go for change state', mode);
|
||||||
// globalMode = mode;
|
globalMode = mode;
|
||||||
logger.debug('Global Mode now A:', globalMode);
|
logger.debug('Global Mode now A:', globalMode);
|
||||||
/* Request(url, function (error, response, body) {
|
/* Request(url, function (error, response, body) {
|
||||||
logger.debug(response, body);
|
logger.debug(response, body);
|
||||||
|
Loading…
Reference in New Issue
Block a user