diff --git a/app/server/methods.js b/app/server/methods.js index 696d40b..80bef82 100644 --- a/app/server/methods.js +++ b/app/server/methods.js @@ -249,7 +249,7 @@ function soundTheAlarm(controller_id, tooCold, tooHot, boxSilent, phoneSilent) { }; var smsSent = !!state.state.alarmSmsSent; - var needsToSendSms = !smsSent && (boxSilent || phoneSilent); + var needsToSendSms = !smsSent; // && (boxSilent || phoneSilent); var sendSmsPart = needsToSendSms ? { 'state.alarmSmsSent': true } : {}; @@ -273,7 +273,7 @@ function sendAlarmingSms(reason, numbers) { twilio.sendSms({ to: number, // Any number Twilio can deliver to from: '+447481345235', // A number you bought from Twilio and can use for outbound communication - body: 'Zoblak alarm! Pokrenite aplikaciju! HITNO!' // body of the SMS message + body: 'Zoblak alarm! Pokrenite aplikaciju! HITNO! http://agrar.zoblak.com' // body of the SMS message }, function(err, responseData) { //this function is executed when a response is received from Twilio if (!err) { // "err" is an error received during the request, if any // "responseData" is a JavaScript object containing data received from Twilio.