Hi Group,
I have a tracker device and need generate a report which shows the start time, stop time and resume time. the veicle is classed as stoped when the speed is returned three tiems with a speed of zero
Name Time Locat Speed
Unit1 10:00 Mallow 40
Unit1 10:01 Yail 40
Unit1 10:02 Yail 40
Unit1 10:03 Yail 40
Unit1 10:04 Yail 0
Unit1 10:05 Yail 0
Unit1 10:06 Yail 0
Unit1 11:12 Mallow 36
Unit1 11:13 Mallow 36
Unit1 11:02 Mallow 0
Unit1 11:03 Mallow 0
Unit1 11:04 Mallow 0
From the data above i would need to produce the following
Name Time Action Location Motion time Idle Time
Unit 1 10:00 Started Mallow 0.00
Unit 1 10:05 Jorrney Yail 0.5
Unit 1 10:06 Stopped Yail 1.6
Unit 1 11:12 Resumed Mallow
in the above result, motion time of .5 represents =5mins, and idle time of 1.6 represents i hour 6 mins , motion time is decided from when car starts moving till the third zero speed is returned in a row and stopped time set for the third zero speed returned in a row till the next time the veichle is moving, The location is decided aginst where the car was for the longest part of the journey,
when the veichle is moving is sends an update every minute to the database until the car is not moving for three minutes i.e its speed i zero for three updates, and starts sending again when the speed goes above zero miles per hour
Any help on this would be greatley appreciated.
I have a tracker device and need generate a report which shows the start time, stop time and resume time. the veicle is classed as stoped when the speed is returned three tiems with a speed of zero
Name Time Locat Speed
Unit1 10:00 Mallow 40
Unit1 10:01 Yail 40
Unit1 10:02 Yail 40
Unit1 10:03 Yail 40
Unit1 10:04 Yail 0
Unit1 10:05 Yail 0
Unit1 10:06 Yail 0
Unit1 11:12 Mallow 36
Unit1 11:13 Mallow 36
Unit1 11:02 Mallow 0
Unit1 11:03 Mallow 0
Unit1 11:04 Mallow 0
From the data above i would need to produce the following
Name Time Action Location Motion time Idle Time
Unit 1 10:00 Started Mallow 0.00
Unit 1 10:05 Jorrney Yail 0.5
Unit 1 10:06 Stopped Yail 1.6
Unit 1 11:12 Resumed Mallow
in the above result, motion time of .5 represents =5mins, and idle time of 1.6 represents i hour 6 mins , motion time is decided from when car starts moving till the third zero speed is returned in a row and stopped time set for the third zero speed returned in a row till the next time the veichle is moving, The location is decided aginst where the car was for the longest part of the journey,
when the veichle is moving is sends an update every minute to the database until the car is not moving for three minutes i.e its speed i zero for three updates, and starts sending again when the speed goes above zero miles per hour
Any help on this would be greatley appreciated.