Тема: Is there a way to get entrances to geofences?
Hi,
I am trying to get how many times entered a device to a geofence. I am using notifications, but I cant find where does the notification saves events o messages to manage manually.
Thanks!
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Hi,
I am trying to get how many times entered a device to a geofence. I am using notifications, but I cant find where does the notification saves events o messages to manage manually.
Thanks!
Hello,
Try to use Geofence table: http://docs.gurtam.com/en/hosting/user/ … /geofences along with Grouping parameter: http://docs.gurtam.com/en/hosting/user/ … #grouping.
Hello,
Try to use Geofence table: http://docs.gurtam.com/en/hosting/user/ … /geofences along with Grouping parameter: http://docs.gurtam.com/en/hosting/user/ … #grouping.
Hi, thanks. But I am using wialon SDK, is there an easy way to get with the remoteAPI?
glizarraga, can you provide more details on what you want to achieve?
glizarraga, can you provide more details on what you want to achieve?
I have notifications (messages and event types ) when devices entering or exiting from certain geofences. But I cant find where to see this notifications, or how to use the message loader to achieve this. Or if there is a report template with this information.
Cheers! Thanks for your atention.
glizarraga,
when you exexute a request resource/get_notification_data you can receive a parameter "ac" - alarms count
For example, it can show how much device has visited a geofences (in or out)
As for report you can execute one with table Geofences. This report shows when and how often a unit visited different geofences.
Table type and name is recieved by request svc=report/get_report_data¶ms
"id":31,"n":"unit_zones_visit","l":"Geofences"
glizarraga, you can subscribe to new messages over the resource and listen to events periodically.
glizarraga,
when you exexute a request resource/get_notification_data you can receive a parameter "ac" - alarms count
For example, it can show how much device has visited a geofences (in or out)As for report you can execute one with table Geofences. This report shows when and how often a unit visited different geofences.
Table type and name is recieved by request svc=report/get_report_data¶ms
"id":31,"n":"unit_zones_visit","l":"Geofences"
Hi thanks for your response,
I located the alarms count parameter but I also need the time that where executed.
Can you explain more detailed the reporte that I can execute? I am trying this, but I get and empty result:
svc=report/get_report_data¶ms={"itemId":764053,"col":[31]}&sid=0ba6903a12810ac8f57475e5ef9d2f57
Dear glizarraga,
request "get_report_data¶ms" only allows to receive all available templates data which you can use in other requests for reports:
names of tables, list of columns, list of labels and so on
It can only shows what exact parameters should be used when you create or execute a report:
reportTemplateId template ID
"n":<text>, /* table type */
"p":<text>, /* table parameters */
and others
The steps are following:
You create a report (or it can already be created on site monitoring)
Then you execute a report svc=report/exec_report and request about tables data: report/get_result_rows
http://sdk.wialon.com/wiki/en/sidebar/r … ables_data