Page 1 of 1

Dude SMS Notifications

Posted: Fri May 06, 2016 2:12 pm
by danihill
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

Re: Dude SMS Notifications

Posted: Fri May 06, 2016 3:25 pm
by krisjanis
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.

Re: Dude SMS Notifications

Posted: Wed May 10, 2017 9:06 am
by shrek777
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

Re: Dude SMS Notifications

Posted: Wed May 10, 2017 9:57 am
by krisjanis
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.

Re: Dude SMS Notifications

Posted: Wed May 10, 2017 4:13 pm
by shrek777
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?

Re: Dude SMS Notifications

Posted: Wed May 10, 2017 4:31 pm
by eriitguy
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!