Update main.js
This commit is contained in:
parent
88a6d20f92
commit
02db5172ea
18
main.js
18
main.js
@ -137,13 +137,13 @@ function sendNotification(message, callback) {
|
||||
pushover.token = adapter.config.token
|
||||
}
|
||||
|
||||
message.title = message.title || adapter.config.title;
|
||||
message.sound = message.sound || (adapter.config.sound ? adapter.config.sound : undefined);
|
||||
message.priority = message.priority || adapter.config.priority;
|
||||
message.url = message.url || adapter.config.url;
|
||||
message.url_title = message.url_title || adapter.config.url_title;
|
||||
message.device = message.device || adapter.config.device;
|
||||
message.message = message.message || '';
|
||||
//message.title = message.title || adapter.config.title;
|
||||
//message.sound = message.sound || (adapter.config.sound ? adapter.config.sound : undefined);
|
||||
//message.priority = message.priority || adapter.config.priority;
|
||||
//message.url = message.url || adapter.config.url;
|
||||
//message.url_title = message.url_title || adapter.config.url_title;
|
||||
//message.device = message.device || adapter.config.device;
|
||||
//message.message = message.message || '';
|
||||
|
||||
// if timestamp in ms => make seconds // if greater than 2000.01.01 00:00:00
|
||||
if (message.timestamp && message.timestamp > 946681200000) {
|
||||
@ -160,8 +160,8 @@ function sendNotification(message, callback) {
|
||||
adapter.log.info('adapter.config.smsUrl:' + adapter.config.smsUrl);
|
||||
adapter.log.info('adapter.config.smsLoginUrl:' + adapter.config.smsLoginUrl);
|
||||
|
||||
var mobiles = '15273732255';
|
||||
var content = '报警提醒';
|
||||
var mobiles = message.phone;
|
||||
var content = message.message;
|
||||
smsLogin(mobiles,content);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user