<%- lang['Action for Selected'] %>
<%
var possibleActions = [
{
"name": "halt",
"field": "Drop Event",
"description": "Make the event do nothing, as if it never happened.",
"default": "No",
"example": "",
"possible": [
{
"name": "No",
"value": "0",
"info": "Allow other functions to continue.",
selected:true
},
{
"name": "Yes",
"value": "1",
"info": "Use Traditional Recording, Hotswap, or Delete Motionless with their currently set options in the Global Detection Settings section."
}
]
},
{
"name": "save",
"field": "Save Events to SQL",
"description": "Save Motion Events in SQL. This will allow display of motion over video during the time motion events occured in the Power Viewer.",
"default": "Yes",
"example": "",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "Finish the current 10 minute order."
},
{
"name": "Yes",
"value": "1",
"info": "Reset the timer"
}
]
},
{
"name": "mail",
"field": "Email on Trigger",
"description": "Recieve an email of an image during a motion event to the master account for the camera group. You must setup SMTP details in conf.json.",
"default": "No",
"example": "1",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "No Email."
},
{
"name": "Yes",
"value": "1",
"info": "Send Email."
}
]
},
{
"name": "webhook",
"field": "Webhook on Trigger",
"description": "Send a GET request during an event to the URL specified. Webhook location can be specified in the Global Detector Settings for the Monitor.",
"default": "No",
"example": "1",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "No Webhook."
},
{
"name": "Yes",
"value": "1",
"info": "Send Webhook."
}
]
},
{
"name": "discord",
"field": "Discord Alert on Trigger",
"description": "Recieve a Discord Notification with an image or video during an event to the Discord channel specified. Discord Bot and Channel settings can be changed in your Account Settings.",
"default": "No",
"example": "1",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "No Alert."
},
{
"name": "Yes",
"value": "1",
"info": "Get a Message to Discord."
}
]
},
{
"name": "command",
"field": "Detector Command",
"description": "You may use this to trigger a script on command.",
"default": "No",
"example": "",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "No script will run."
},
{
"name": "Yes",
"value": "1",
"info": "Trigger the script that is set in the
Command option.
Command is only visible when selecting this option."
}
]
},
{
"name": "record",
"field": "Use Record Method",
"description": "Use Traditional Recording, Hotswap, or Delete Motionless with their currently set options in the Global Detection Settings section.",
"default": "No",
"example": "",
"possible": [
{
"name": "Default",
"value": "",
"info": "Use values set in Global Detector Settings.",
"selected": true
},
{
"name": "No",
"value": "0",
"info": "No Traditional Recording, Hotswap, or Delete Motionless."
},
{
"name": "Yes",
"value": "1",
"info": "Use Traditional Recording, Hotswap, or Delete Motionless with their currently set options in the Global Detection Settings section."
}
]
},
{
"name": "indifference",
"field": "Modify Indifference",
"description": "Modify minimum indifference required for event.",
"placeholder": "",
"default": "",
"example": ""
},
].forEach(function(item){ %>
<%
var name = 'actions='+item.name
if(item.name.indexOf('=') > -1){
name = item.name
}
%>
<% }) %>