diff options
Diffstat (limited to 'opengts.cfg')
-rw-r--r-- | opengts.cfg | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/opengts.cfg b/opengts.cfg index 11dbbbb2f..a47ca865a 100644 --- a/opengts.cfg +++ b/opengts.cfg @@ -7,36 +7,38 @@ <!-- Global confiduration --> <entry key="database.driver">com.mysql.jdbc.Driver</entry> <entry key="database.url">jdbc:mysql://localhost/gts?allowMultiQueries=true</entry> - <entry key="database.user">user</entry> - <entry key="database.password">password</entry> + <entry key="database.user">root</entry> + <entry key="database.password">root</entry> <!-- Database refresh delay in seconds --> <entry key="database.refreshDelay">300</entry> - <!--> - id - Integer - imei - String - <--> <entry key="database.selectDevice"> SELECT imeiNumber AS id, imeiNumber AS imei FROM Device WHERE imeiNumber <> ''; </entry> - <!--> - device_id - Integer - time - Date - valid - Boolean - latitude - Double - longitude - Double - speed - Double - course - Double - power - Double (NULL for some protocols) - extended_info - String (XML) - <--> + <entry key="database.insertDevice"> + DO 0; + </entry> + + <entry key="database.updateDevice"> + DO 0; + </entry> + + <entry key="database.deleteDevice"> + DO 0; + </entry> + + <entry key="database.selectPosition"> + DO 0; + </entry> + <entry key="database.insertPosition"> START TRANSACTION; UPDATE Device SET lastValidLatitude = :latitude, lastValidLongitude = :longitude, lastGPSTimestamp = UNIX_TIMESTAMP(:time), lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE imeiNumber = :device_id; SELECT @accountID := accountID, @deviceID := deviceID FROM Device WHERE imeiNumber = :device_id; - INSERT INTO EventData VALUES (@accountID, @deviceID, UNIX_TIMESTAMP(:time), 0, :latitude, :longitude, 0, :speed, :course, 0, '', 0, '', '', '', 0, 0, 0, '0000000001', UNIX_TIMESTAMP(NOW())); + INSERT INTO EventData (accountID, deviceID, timestamp, statusCode, latitude, longitude, speedKPH, heading, altitude, rawData, creationTime) + VALUES (@accountID, @deviceID, UNIX_TIMESTAMP(:time), 0, :latitude, :longitude, :speed, :course, :altitude, '', UNIX_TIMESTAMP(NOW())); COMMIT; </entry> @@ -88,4 +90,9 @@ <entry key="avl08.port">5007</entry> <entry key="avl08.resetDelay">0</entry> + <!-- Enfora server configuration --> + <entry key="enfora.enable">true</entry> + <entry key="enfora.port">5008</entry> + <entry key="enfora.resetDelay">0</entry> + </properties> |