This is an old revision of the document!


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

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