Creating Camera event rules for Meitrack devices

Make sure you have Camera plugin installed.
Make sure you have updated the Meitrack plugin.

Creating an event rule which triggers picture taking:
1) In your application, select Admin menu -> Event Rules -> Add new Event Rule
2) Fill out the form of the event rule wizard. (For example, you can create a rule which takes a picture if the vehicle leaves a geofence)
3) In the notification step of the event rule wizard, add a command notifier as shown below:

camera_notification.png

4) Save the event rule.

Creating an event rule which uploads pictures taken automatically:
By default Meitrack devices take a picture when the driver uses the SOS button. You can automate the task of obtaining the image using the Event Code in the Event Rules.

1) Map the following signals for your device in Admin > Device Mapper

camera_meitrack_device_mapper.png

To upload those pictures from the device, you have to set up an event rule:
1) In your application, select Admin menu -> Event Rules -> Add new Event Rule
2) Fill out the form in the event rule wizard.
3) In the expressions step of rule wizard, create the expressions as shown below:

camera_eventCode.png

4) In the notification step of rule wizard, create command notifier as shown below:

camera_notification_get.png

5) save the event rule.

Troubleshooting

Doublecheck that:

- A microSD card is installed in the card slot.
- There is enough space on the microSD card to take pictures.
- The camera is connected to the right port (Camera 1).

How to enable 2 cameras for MVT600
1) Go to SiteAdmin -> Devices -> Types
2) Select Meitrack MVT600 for Device Type.
3) In the Instance selector you can pick the device definition instance where you want to enable 2 cameras.
4) Change "Camera Ports" meta field to 1,2
5) Click Save.