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 the form of 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 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 device you have to set up an event rule:
1) In your application, select Admin menu -> Event Rules -> Add new Event Rule
2) Fill the form of 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.

Trouble shooting

This to double check:

- 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 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.

More reading

Take picture every 2 minutes
http://gpsgate.com/blogComment/taking_p ... _2_minutes