From 3486c6629c4613ff1a1ff07e02c261f27de66f20 Mon Sep 17 00:00:00 2001 From: kguerineau Date: Sun, 29 Sep 2024 12:24:09 +0200 Subject: [PATCH] [IMP] Change url for ovh smsapi --- nutNotifyFct.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nutNotifyFct.sh b/nutNotifyFct.sh index 9243dcb..cb3ecab 100644 --- a/nutNotifyFct.sh +++ b/nutNotifyFct.sh @@ -54,7 +54,8 @@ function sendSms { textSms=$(echo $textSms | sed -e 's/ /%20/g' | iconv -t iso-8859-1) - url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms" + #url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms" + url="https://www.ovh.com/cgi-bin/sms/http2sms.cgi?&noStop=1&account=$accountSms&login=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&message=$textSms" tempfile=$(tempfile -p 'nutNotifySms-') curl -s -o $tempfile $url result=$(cat $tempfile | grep '' | awk -F "[<>]" '{print $3}') @@ -236,3 +237,4 @@ function conditionalNotification { fi } +