Community discussions

MikroTik App
 
danihill
newbie
Topic Author
Posts: 27
Joined: Wed Dec 17, 2014 9:07 pm

Dude SMS Notifications

Fri May 06, 2016 2:12 pm

Hi, we now use dude server on a CHR mounted on a PVE. We also have a GSM modem conected via seral to the machine.

In the router OS i can send SMS messages via the modem connected to the serial port.

Is there a way or plans to implement a SMS notification sevice in dude that utalises the onboard SMS service on the Routerboard OS that the server is installed on?

Thanks
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: Dude SMS Notifications

Fri May 06, 2016 3:25 pm

There is an idea that we could allow dude server to access sms tool for sending notifications. Although I cannot yet say when this feature will actually get implemented in dude server.
 
shrek777
Member Candidate
Member Candidate
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Dude SMS Notifications

Wed May 10, 2017 9:06 am

Any update on this? we already have it running on old dude, because it is on windows server, but now we moved to new version and we need sms notifications directly from board
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: Dude SMS Notifications

Wed May 10, 2017 9:57 am

Yes. A while ago new notification type "execute on server" was added. Which allows you to write ROS scripts in there to use various tools on host device side. That includes option to send sms that way.
 
shrek777
Member Candidate
Member Candidate
Posts: 264
Joined: Wed Jan 21, 2009 9:44 am

Re: Dude SMS Notifications

Wed May 10, 2017 4:13 pm

Can you give me more info how to do that? we have dude on router board. we have sms server with link or we can use gsm gateway, can you suggest which option to use and how?
 
eriitguy
Member Candidate
Member Candidate
Posts: 197
Joined: Thu Jan 26, 2017 1:16 pm

Re: Dude SMS Notifications

Wed May 10, 2017 4:31 pm

shrek777,

We use SMS notification via HTTP request.
It looks like this:
#
# Send SMS
#
:local notificationtextEncoded "[Probe.Name] on [Device.Name] is now [Service.Status] - [TimeAndDate] - [Service.TimeSinceChanged]";
:local url http://192.168.1.1:1111/sendsms;
:local username user;
:local password password;
:local from dude-sms;
#
# First Name Last Name
:local to "+XXXXXXXXXXX";
/tool fetch url="$url\?username=$username&password=$password&to=$to=$to&text=$notificationtextEncoded&from=$from" keep-result=no
#
For more information, please refer to the Dude Telegram Example

First, please try to send SMS from ROS terminal using fetch.

Thank you!