Register custom event

To register custom event, use the command unit/registry_custom_event:

svc=unit/registry_custom_event&params={"date":<uint>,
				       "x":<double>,
				       "y":<double>,
				       "description":<text>,
				       "violation":<uint>,
				       "itemId":<long>,
				       "nt":<text>}

Parameters

Name Description
date date
x longitude
y latitude
description description
violation violation: 0 - common event, 1 - violation
itemId unit ID
nt notification text

The nt parameter is passed when registering an event for online notification. The text of the triggered notification is transferred to it.

Response

{}	/* empty object if execution successful, if not - error code */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam