Hi,
At the moment we have a setup that the Ewon sends 1 sms to an notification handler at our main office, and from there we send the message to multiple users. and this for all our alarms.
Script we use:
SmsAlarm:
Index% = GETSYS PRG,“EVTINFO”
SETSYS TAG,“LOAD”,Index%
M$= GETSYS TAG,“AlHint”
A% = ALSTAT(Index%)
IF A%=2 Then
REM <ACTIVE/IDLE(1/0)>
M$= M$ + “,<01>”
ENDIF
IF A%=0 Then
M$= M$+",<00>"
ENDIF
D$ = “+32*********,gsm,0”
SENDSMS D$,M$
AL_HIST@ = 1
RETURN
The number is being hard-coded in the script, this works fine, but the handler is an old device with serial connection… this device is starting to act his age and we want to swap it for a similar device OR the Ewon Sends the multiple sms towards the different user itself. (24h alarm overview is already sent to the users every day so we “don’t need” the central handler anymore per sé)
As the standard alarm handling is done per tag-base, this would be to much work so I was thinking of using the “users” table on the Ewon.
=> Like the standard “ADM”-user, but the other users to be added in this list and the “information”-column would hold the mobile number of the user.
In this case, I would like to do a for loop in the users, and if the information column is filled in with only “numeric characters” and the right “size” , we would use this information to send out the alarm.
Can this info being read from script? and if so, How could I do that?
Thanks in advance for the info!
br,
Peter