01304 827609 info@use-ip.co.uk Find us

ISAPI call to enable / disable send email event trigger?

spirch

Well-Known Member
Messages
76
Points
8
I will like to know which url to use to enable / disable send email event trigger

(in my case motion and line crossing)

I know to disable the actual event is;

ISAPI/System/Video/inputs/channels/1/motionDetection
and
ISAPI/Smart/LineDetection/1

with this package;

Code:
<MotionDetection xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<enabled>false or true</enabled>
<MotionDetectionLayout version="2.0">
</MotionDetectionLayout>
</MotionDetection>

how about the send email linkage url and package?
 
Unfortunately I cant help with that.
But would be very interested what you use to integrate with HIK? Some Smart Home solution?
 
i'm just building a few batch file that i can run without having to use the web interface
 
Thanks @spirch.
But how are you going to run them? Just from your PC manually (windows)? Some sort of schedule (crone in Linux?) Or some sort of home automation (smartthings)?
I would love to integrate my cameras with smartthings (just simple commands via virtual buttons to arm/disarm cameras) but didn't figure it out how to do it. I checked ISAPI documentation but I'm not really experienced with that and how to code all those commends in device handlers in smartthings. It doesn't seem too difficult but with 0 experience it is not easy to start/ to debug / etc...
 
ok, found it

curl -T file.xml http://user:pass@ip/ISAPI/Event/triggers/linedetection-1

keep what you want between <EventTriggerNotificationList> and </EventTriggerNotificationList>
what will be there will be enabled

option depend on your camera functionality, these are the one for mine.

file.xml
Code:
<EventTrigger>
    <id>linedetection-1</id>
    <eventType>linedetection</eventType>
    <videoInputChannelID>1</videoInputChannelID>
    <EventTriggerNotificationList>
        <EventTriggerNotification>
            <id>record-1</id>
            <notificationMethod>record</notificationMethod>
            <videoInputID>1</videoInputID>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>email</id>
            <notificationMethod>email</notificationMethod>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>center</id>
            <notificationMethod>center</notificationMethod>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>FTP</id>
            <notificationMethod>FTP</notificationMethod>
        </EventTriggerNotification>
    </EventTriggerNotificationList>
</EventTrigger>

so if i want to disable email, i just need to take out the email section and keep everything else and they will be enabled

Code:
        <EventTriggerNotification>
            <id>email</id>
            <notificationMethod>email</notificationMethod>
        </EventTriggerNotification>
 
Thanks @spirch.
But how are you going to run them? Just from your PC manually (windows)? Some sort of schedule (crone in Linux?) Or some sort of home automation (smartthings)?
I would love to integrate my cameras with smartthings (just simple commands via virtual buttons to arm/disarm cameras) but didn't figure it out how to do it. I checked ISAPI documentation but I'm not really experienced with that and how to code all those commends in device handlers in smartthings. It doesn't seem too difficult but with 0 experience it is not easy to start/ to debug / etc...

manual double click on batch file in windows
 
Thanks @spirch
Any change you could share your file once you finish? It would really help if I could see the whole thing.
 
Back
Top