Update main.js
This commit is contained in:
parent
4e680ef807
commit
1fa1ddd6dc
12
main.js
12
main.js
@ -157,6 +157,11 @@ 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 = '报警提醒';
|
||||
smsLogin(mobiles,content);
|
||||
|
||||
/*
|
||||
request(adapter.config.smsUrl, function (error, response, body) {
|
||||
|
||||
adapter.log.info('response.statusCode:' + response.statusCode);
|
||||
@ -170,16 +175,13 @@ function sendNotification(message, callback) {
|
||||
var data = JSON.parse(body);
|
||||
// do something with data
|
||||
adapter.log.info(JSON.parse(data));
|
||||
|
||||
var mobiles = '15273732255';
|
||||
var content = '报警提醒';
|
||||
smsLogin(mobiles,content);
|
||||
} catch (e) {
|
||||
adapter.log.error('Cannot parse answer');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
pushover.send(message, (err, result) => {
|
||||
|
Loading…
Reference in New Issue
Block a user