Page 1 of 2

call mobile phone if alarmed

Posted: Mon Jun 12, 2006 12:57 pm
by ynn
Hi,
I would like to ask everyone if someone already done this?
can ZM does call my cell phone using the serial modem if there is alarm triggered? or send me sms using my nokia cable attached to usb?

thanks.

Posted: Tue Jun 13, 2006 9:28 am
by zoneminder
There is no solution built in. However if you can find code to generate SMS's then you can integrate it into ZM by using zmtrigger or using it as a filter script.

Posted: Thu Jun 15, 2006 7:42 am
by martijn-plaat
you can use a sms-gateway. when an alarm is triggered zoneminder sends an email to 06123456789@sms-gateway.com where 06123456789 is your mobile number. When the email is send to that mailadres you receive a sms-message.

or

Combine Astrisk (OpenSource PBX) with Zoneminder and Asterisk will call you up when an alarm is triggered. You hear a computer voice saying "alarm detected!" or something like that. search this forum about Asterisk.

Greets Martijn

Posted: Sat Jun 17, 2006 5:02 am
by ynn
In my warehouse, I don't have internet yet, so the only solution is only through serial port with modem or nokia cell phone attached with DKU5 cable. and if there is alarm, I would like the modem or the cellphone to call me at my cell phone. Phil, can it be done with simple ATDT command? if yes, do you know what file I should modify?
Thanks.

Posted: Sat Jun 17, 2006 10:25 am
by jameswilson
I have read things about cell phones craking when left for extended periods. I have looked at the possibilty of using a normal modem and phoning the cell phone text number and passing the test message like this. You will find another thread on this subject. Im not sure Phil is expert in this area, you need another member with comms skills. See my other message its around somewhere

Posted: Sat Jun 17, 2006 6:29 pm
by voronwe
Hi All

Iam using a wavecom 1306B(http://www.wavecom.com) GSM modem with my ZM installation, but note that i have not set up any alarm function with ZM as of yet, the software that iam using is SMS Server Tools found at http://www.meinemullemaus.de/ and i woul think that such an integration would be farely easy since you can send sms thru a shell script. What iam using this GSM modem for is to change states and get info from my ZM box.

Posted: Sat Jun 17, 2006 7:00 pm
by jameswilson
voronwe please eleborate, im intrigued, you change run states from your mobile? and get what status etc?

Cheers

Posted: Sat Jun 17, 2006 11:04 pm
by voronwe
Hi James

I can see now that i read my post once more that it can be a bit tricky to onderstand what i was trying to say so here goes.

The setup i have atm. with my gsm modem is this.:

1. I can send an sms to the gsm modem, that is then recived by the SMS Server tool, and that in turn can call a shell script in witch you can define what can happen, for instance if i want to know if ZM is running i send an sms containing a request for a status, the shell script then read the sms and see that iam requesting a status, it then excecutes

Code: Select all

perl -wT $ZMDIR/zmdc.pl check
witch will telle me if ZM is running or not (i havent worked with the what state ZM is in yet, but that is next), and it allso tells me how much space is used on my data disk.

2. I can send a sms to the gsm modem with a message to turn ZM to my active state, witch in turn is equal to my cams bieng in Modect mode.

3. I can send a sms that then tells ZM to change state so my cams go into Monitor mode.


So in all i can do pretty much anything within my shell script, since sms tools will call that script, and execute what you want it to based on the info inside the sms.

And if you would want an sms to be sent when an alarm happens in zm, you could call that same or another shell script and have that make an sms and put into the outgoing que with the info you want it to contain.

I hope that i have explained it in a way that is more understandeble than the last one hehe. 8)

Posted: Sat Jun 17, 2006 11:21 pm
by jameswilson
i like that thanks. I suppose you have a sim and a contract in your modem

Posted: Sun Jun 18, 2006 12:21 am
by voronwe
Hi James

Yes i have a Sim and a cheap contract, and that works just fine for the purpuse that i have.

And since SMS tools and the wavecom GSM modem dont care what kind of contract you have that option is open to your choice, and with the shell script option to sms tools only your emagination set's the limit.

Posted: Mon Jun 19, 2006 6:55 am
by ynn
Hi James,

I could not find the thread.
Can it be done actually by just doing AT-command to serial modem if thereis motion detected?

thanks.

Posted: Mon Jun 19, 2006 7:01 am
by jameswilson
http://www.zoneminder.com/forums/viewto ... hlight=sms
Not sure. I would assume so but it would depend on your phone. You would need a different command per phone by the looks of things

Posted: Fri Jul 09, 2010 7:14 am
by Acecare
I definitely agree with you. If you follow the instructions provided by tech_fixer, you could probably fix your problem. So you should do it properly by merely following the instructions.

Posted: Tue Aug 03, 2010 8:37 am
by diego.mens
i want to know also , waitting for good suggestions . 8)

Posted: Mon Aug 09, 2010 10:47 am
by KevinT
Hi,
Im using Linux, Fedora and found that sending SMS messages is very easy. I have made my machine send and receive messages and control actions both inside ZM and outside.

I bought a Nokia and a USB data cable configured SMS with GNOKII
Using http://www.gnokii.org/

I did pay as you go with this Nokia. Using the GNOKII tools you can send messages using your phone (no gateway is needed as the GSM modem is all in the phone). And using some scripting and the GNOKII command line i am able to read messages from the phone and take actions on them.

Hope that helps.
Kevin