call mobile phone if alarmed

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

call mobile phone if alarmed

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
martijn-plaat
Posts: 2
Joined: Fri Jun 09, 2006 7:20 am

Post 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
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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.
Best Regards
Tom Stage
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

voronwe please eleborate, im intrigued, you change run states from your mobile? and get what status etc?

Cheers
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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)
Best Regards
Tom Stage
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i like that thanks. I suppose you have a sim and a contract in your modem
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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.
Best Regards
Tom Stage
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Acecare
Posts: 2
Joined: Fri Jul 09, 2010 7:04 am

Post 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.
diego.mens
Posts: 2
Joined: Sat Jul 31, 2010 7:13 am

Post by diego.mens »

i want to know also , waitting for good suggestions . 8)
KevinT
Posts: 4
Joined: Mon Aug 09, 2010 10:43 am

Post 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
Post Reply