piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

Geofence Event Rule Not Notify Correctly

Wed Jun 01, 2011 2:23 pm

Hi,

I have use an Event Rule to check whether a vehicle come inside or go outside geofences. I name the tag for each geofence the same with it's geofence's name.

For a while this rule could notify correctly using [GEOFENCE_NAME], yesterday I rename the geofence tag name, the event rule still notify but cannot show the [GEOFENCE_NAME]. I have rename the tags back and still not working (just blank instead of the Geofence name.

Thank you.


Best Regards,

Piter197

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Wed Jun 01, 2011 2:50 pm

When I check again, in Insert Variable Drop down list, I got more then 10 Geofence list item. But when I create new with wizard,in Insert Variable drop down list, only show 1 Geofence list item (normal).

Best Regards,

Piter197

User avatar
johan
GpsGate
Posts: 14986
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Geofence Event Rule Not Notify Correctly

Wed Jun 01, 2011 3:07 pm

Please follow those steps:

1. Login to SiteAdmin.
2. Select the application under Applications -> Search and Manage
3. Click on "Save as Template".
4. Click on "Export".
5. Email the exported Application Template XML file to aupport@gpsgate.com and we will take a look at it. Include information about which Event Rules are not working properly.

Optional; if you want to delete the Template created in step 3, follow those steps:

1. Click on Applications -> Search and Manage
2. Select the "Templates" radio button.

You now see all the Application Templates (not your applications)

3. Click on the Template you want to delete.
4. Click on Delete and then confirm with "Yes".

Make sure you do not delete your original application :-)

Regards,
Johan

GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 10:02 am

Hi,

Thanks for replying.
I have delete the problem Geofence Event Rule and create the new one with more simple expression, still the [GEOFENCE_NAME] cannot be shown in received notification.

This also happen to my other application, for your information that this two application belong to sister company so in application A that have 10 geofences and in application B have 4 geofences that also the same geofences with A (and I name the Geofence Tag the same in both applications)

I will send both application template XML to support@gpsgate.com

Thank you




Best Regards,

Piter197

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 10:16 am

Hi again,

Sorry, I cannot export the application template XML, when I click Save As Template, I got this error on both applications: An error occurred: An EventExpressionEvaluator must have at least one ChannelNotifier.

What should I do next?

Thank you.


Best Regards,

Piter197

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 10:18 am

Hi,

I have re-check Notifier on both application, I have assign report, email & SMS notifier on Tag for user and no warning/exclamation mark that indicate incomplete in event rule.

Thank you.


Best Regards,

Piter197

User avatar
johan
GpsGate
Posts: 14986
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 12:45 pm

Please confirm you have upgraded to the latest Core.

Follow those steps:
1. Login to SiteAdmin
2. Go to "Plugins"
3. Download and upgrade "Core".

After upgrade click on "Plugins" again. You now see a list of all plugins. This marked as "green" are up to date. Those marked as "red" should be updated".

4. Update all plugins marked as red.

Please confirm when this is done.

Regards,
Johan

GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 3:49 pm

Hi,

I have check SiteAdmin, nothing need to be upgraded all plugins green, core version 3.0.0.2856 with patch.2856 version 3.0.0.2899

AppGeocoder [Map] 3.0.0.2860
ArkNav [Device Driver] 3.0.0.2809
Basic One [Application] 3.0.0.2883
BreadCrumb Report [Report] 3.0.0.2848
Chat [Feature] 3.0.0.2865
Cleanup [Feature] 3.0.0.2812
CloudMade [Map] 3.0.0.2884
Core [Core] 3.0.0.2856
Detailed Distance Report [Report] 3.0.0.2898
Developer Tools [Developer Tools] 3.0.0.2846
Dispatch [Feature] 3.0.0.2856
Dispatcher [Feature] 3.0.0.2729
English Language [Language] 3.0.0.2872
Event Report [Report] 3.0.0.2856
Garmin [Device Driver] 3.0.0.2900
Geocoder [Map] 3.0.0.2899
GoogleLegacyGeocoder [Map] 3.0.0.2878
IntelliTrac [Device Driver] 3.0.0.2854
LogFiles [Log] 3.0.0.2835
Map Coordinates [Feature] 3.0.0.2717
Meitrack [Device Driver] 3.0.0.2854
Metric Measure [Measure] 3.0.0.2743
Nautic Measure [Measure] 3.0.0.2743
Online Status [Feature] 3.0.0.2717
Patch.2856 [Patch] 3.0.0.2899
PointsOfInterest [Feature] 3.0.0.2883
Popup Logging pane for VT [Debugging] 3.0.0.2717
Real Time Application [Application] 3.0.0.2743
Rendezvous [Feature] 3.0.0.2882
Reporting [Feature] 3.0.0.2817
Signal Report [Report] 3.0.0.2871
SmartPipe [Device Driver] 3.0.0.2887
SOS Application [Application] 3.0.0.2743
Tag Notifier [Feature] 3.0.0.2876
Terminal [Feature] 3.0.0.2787
WatchDog.Client [Feature] 3.0.0.2717

Thank you


Best Regards,

Piter197

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 3:56 pm

Just update from beta.gpsgate.com

IntelliTrac [Device Driver] 3.0.0.2909
Patch.2856 [Patch] 3.0.0.2910



Best Regards,

Piter197

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Thu Jun 02, 2011 4:34 pm

Trying to Save as Template on both application still error, An error occurred: An EventExpressionEvaluator must have at least one ChannelNotifier.


Best Regards,

Piter197

User avatar
johan
GpsGate
Posts: 14986
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Geofence Event Rule Not Notify Correctly

Fri Jun 03, 2011 10:22 pm

I installed the latest version myself and tried to repeat your problem with the geofence name, but it works fine for me.

We will fix the "An EventExpressionEvaluator must have at least one ChannelNotifier." problem in the coming Core update.

If this is not urgent, we continue with this issue after that release. Beta out in about 10 working days.

Regards,
Johan

GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Sat Jun 04, 2011 3:21 am

Ok, many thank.... I'll wait, mean while for the remedy I'll just make Geofence Event Rule for each Geofence with fixed geofence name in notification



Best Regards,

Piter197

User avatar
johan
GpsGate
Posts: 14986
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Geofence Event Rule Not Notify Correctly

Sat Jun 04, 2011 5:33 pm

Have you noticed you group geofences in "Geofence Tags"? You should not need to create one event rule per geofence. Nor should you need to add one expression per geofence in one event rule.

Instead you should place all your geofences that are used in one Event Rule, in one "Geofence Tag", and then use that tag in the event rule.

Follow those steps1:

1. Create all the geofences you need.
2. In the "Geofence" tab in Map View, select "Tag mode".
3. Select "---New---" in the drop down.
4. Enter a name, e.g. "Bus stops".
5. Check all geofence you want included.
6. Click Save.

Now create an Event Rule. When adding a Geofence expression in step 4. in the Event Rule Wizard, select "Bus stops", and then "Inside" or "Outside".

The rule will now affect all geofences that you include in that tag.

Regards,
Johan

GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: Geofence Event Rule Not Notify Correctly

Sun Jun 05, 2011 2:50 am

Yes I have try that before.

This is what happen, first of all, I already have application ABC. then I create application XYZ, some members of application ABC move to application XYZ. then I duplicate some geofences that also use in both application. the create event rule.

In application ABC & application XYZ.
1. create geofence A, geofence B, geofence C, ..... and name tags same as geofence name.
2. then create event rule 1 as detect incoming, for each geofences: I put geofence A as inside, geofence B as inside, geofence C as inside, ......
3. then create event rule 2 as detect outgoing, for each geofences: I put geofence A as outside, geofence B as outside, geofence C as outside, ......
==> the notification can work perfectly, the [GEOFENCE_NAME] can be displayed in notification

then I realize that this is not flexible as the customer need to modify the Event rule in order to add or remove more geofences.

then I do the step that you suggest like this.
1. in geofence panel I crete new tag geofence like this: "area incoming" that include all geofence before, then "area outgoing" that also include all geofence before. (I provide two tag, in case the member of inside rule and the member of outside rule not the same)
2. in event rule incoming, remove all geofence in expression, then replace with only one expression that is "area incoming" as inside
3. in event rule outgoing, remove all geofence in expression, then replace whit only one expression that is "area outgoing" as outside
4. remove all tag geofence (the tag that the same name with their geofence) before except for tag "area incoming" and "area outgoing"
==> from this point I got the notification problem, the [GEOFENCE_NAME] cannot be displayed in notification.

I have try to restore the old event rule (that is re-create the incoming and outgoing event rule that in geofence expression I include each tag geofence - not grouping the geofence with one tag) and still the same, the [GEOFENCE_NAME] cannot be displayed again.

That's why, meanwhile waiting for core update I'll create hard coded location name, create event rule for each geofence that in their notification not use [GEOFENCE_NAME] but hard coded their location name inside the message.



Best Regards,

Piter197

User avatar
johan
GpsGate
Posts: 14986
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Geofence Event Rule Not Notify Correctly

Sun Jun 05, 2011 8:46 pm

Your first approach should not be used. That is not the way to do it.

Your second approach is the correct one. Do you have problems with the "outside" rule only, or also the "inside" rule?

For the "outside" rule the vehicle must first be inside a geofence to understand which geofence it has left. Otherwise [GEOFENCE_NAME] will be empty.

A very good way to learn and experimant with Event Rules is to setup a test application, and then use "SimOne". SimOne is an emulated "TrackerOne" device, which runs as a Windows application, you can download it here:
http://gpsgate.com/go/gpsgateserver/download.asp

Regards,
Johan

GpsGate Support

Return to “GpsGate Server - How to setup and use”