Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Force alarm #4

Open
tikismoke opened this issue Mar 10, 2017 · 1 comment
Open

Force alarm #4

tikismoke opened this issue Mar 10, 2017 · 1 comment

Comments

@tikismoke
Copy link
Owner

Force alarm with cameraId, duration, title.

Actually i do this via telnet with zmtrigger activated on zoneminder host:

#!/usr/bin/python
import sys
import telnetlib

HOST = "zoneminder"
PORT = "6802"

tn = telnetlib.Telnet(HOST,PORT)

tn.write("5|on+20|1|Alarme|Domogik External Motion Salon|\n")
'''
id|action|score|cause|text|showtext
'''
tn.close()

It make the cameraId 5 to be set as alarm fore 20s with a cause and a text.

Zmtrigger: https://wiki.zoneminder.com/How_to_use_your_external_camera's_motion_detection_with_ZM

@axboct
Copy link

axboct commented Mar 10, 2017

I use a similar trigger on the serial interface. I record the "call to portal" event. Simple attiny45 board and arduino code :)
I want to see events like caller id plugin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants