Content-Length: 374 Extend xexun protocol - kn and kmh - trackermap-server - Patches to the Traccar servetom feed' href='http://127.0.0.1:4002/trackermap-server/atom/src/org/traccar/protocol?h=v4.14' type='application/atom+xml'/> <link rel='vcs-git' href='https://git.avalos.me/trackermap-server' title='trackermap-server Git repository'/> </head> <body> <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/'><img src='/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/'>index</a> : <a href='/trackermap-server/'>trackermap-server</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='a51e0dcf72973054da8abd45296498d6664484e9'/><select name='h' onchange='this.form.submit();'> <option value='master'>master</option> <option value='upstream'>upstream</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>Patches to the Traccar server for TrackerMap</td><td class='sub right'></td></tr></table> <table class='tabs'><tr><td> <a href='/trackermap-server/about/?h=v4.14'>about</a><a href='/trackermap-server/?h=v4.14'>summary</a><a href='/trackermap-server/refs/?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>refs</a><a href='/trackermap-server/log/src/org/traccar/protocol?h=v4.14'>log</a><a href='/trackermap-server/tree/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>tree</a><a class='active' href='/trackermap-server/commit/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>commit</a><a href='/trackermap-server/diff/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>diff</a></td><td class='form'><form class='right' method='get' action='/trackermap-server/log/src/org/traccar/protocol'> <input type='hidden' name='h' value='v4.14'/><input type='hidden' name='id' value='a51e0dcf72973054da8abd45296498d6664484e9'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/trackermap-server/commit/?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>root</a>/<a href='/trackermap-server/commit/src?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>src</a>/<a href='/trackermap-server/commit/src/org?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>org</a>/<a href='/trackermap-server/commit/src/org/traccar?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>traccar</a>/<a href='/trackermap-server/commit/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>protocol</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='v4.14'/><input type='hidden' name='id' value='a51e0dcf72973054da8abd45296498d6664484e9'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>cz-vilda <cz-vilda@users.noreply.github.com></td><td class='right'>2017-05-10 23:56:56 +0200</td></tr> <tr><th>committer</th><td>GitHub <noreply@github.com></td><td class='right'>2017-05-10 23:56:56 +0200</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/trackermap-server/commit/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>a51e0dcf72973054da8abd45296498d6664484e9</a> (<a href='/trackermap-server/patch/src/org/traccar/protocol?id=a51e0dcf72973054da8abd45296498d6664484e9'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/trackermap-server/tree/?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>cd1e5323c57255fa85d77231526645dab9e3c0f4</a> /<a href='/trackermap-server/tree/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>src/org/traccar/protocol</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/trackermap-server/commit/src/org/traccar/protocol?h=v4.14&id=257fceb3d8d844bdd9edb5f38e90387ab856670a'>257fceb3d8d844bdd9edb5f38e90387ab856670a</a> (<a href='/trackermap-server/diff/src/org/traccar/protocol?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9&id2=257fceb3d8d844bdd9edb5f38e90387ab856670a'>diff</a>)</td></tr><tr><th>download</th><td colspan='2' class='oid'><a href='/trackermap-server/snapshot/trackermap-server-a51e0dcf72973054da8abd45296498d6664484e9.tar.gz'>trackermap-server-a51e0dcf72973054da8abd45296498d6664484e9.tar.gz</a><br/><a href='/trackermap-server/snapshot/trackermap-server-a51e0dcf72973054da8abd45296498d6664484e9.tar.bz2'>trackermap-server-a51e0dcf72973054da8abd45296498d6664484e9.tar.bz2</a><br/><a href='/trackermap-server/snapshot/trackermap-server-a51e0dcf72973054da8abd45296498d6Date: Sun, 24 Nov 2024 03:22:38 GMT 664484e9.zip'>trackermap-server-a51e0dcf72973054da8abd45296498d6664484e9.zip</a><br/></td></tr></table> <div class='commit-subject'>Extend xexun protocol - kn and kmh</div><div class='commit-msg'>Updated xexun protocol to be able to use kmh as source speed.</div><div class='diffstat-header'><a href='/trackermap-server/diff/?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>Diffstat</a> (limited to 'src/org/traccar/protocol')</div><table summary='diffstat' class='diffstat'><tr><td class='mode'>-rw-r--r--</td><td class='upd'><a href='/trackermap-server/diff/src/org/traccar/protocol/XexunProtocolDecoder.java?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>src/org/traccar/protocol/XexunProtocolDecoder.java</a></td><td class='right'>11</td><td class='graph'><table summary='file diffstat' width='11%'><tr><td class='add' style='width: 90.9%;'/><td class='rem' style='width: 9.1%;'/><td class='none' style='width: 0.0%;'/></tr></table></td></tr> </table><div class='diffstat-summary'>1 files changed, 10 insertions, 1 deletions</div><table summary='diff' class='diff'><tr><td><div class='head'>diff --git a/src/org/traccar/protocol/XexunProtocolDecoder.java b/src/org/traccar/protocol/XexunProtocolDecoder.java<br/>index 4d44c2326..303864c3f 100644<br/>--- a/<a href='/trackermap-server/tree/src/org/traccar/protocol/XexunProtocolDecoder.java?h=v4.14&id=257fceb3d8d844bdd9edb5f38e90387ab856670a'>src/org/traccar/protocol/XexunProtocolDecoder.java</a><br/>+++ b/<a href='/trackermap-server/tree/src/org/traccar/protocol/XexunProtocolDecoder.java?h=v4.14&id=a51e0dcf72973054da8abd45296498d6664484e9'>src/org/traccar/protocol/XexunProtocolDecoder.java</a></div><div class='hunk'>@@ -109,7 +109,16 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder {</div><div class='ctx'> position.setValid(parser.next().equals("A"));</div><div class='ctx'> position.setLatitude(parser.nextCoordinate());</div><div class='ctx'> position.setLongitude(parser.nextCoordinate());</div><div class='del'>- <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error

500 - Internal Server Error

position.setSpeed(parser.nextDouble(0));
+
+ switch (Context.getConfig().getString(getProtocolName() + ".speed", "kn")) {
+ case "kmh":
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble(0)));
+ break;
+ default:
+ position.setSpeed(parser.nextDouble(0));
+ break;
+ }
+
position.setCourse(parser.nextDouble(0));
dateBuilder.setDateReverse(parser.nextInt(0), parser.nextInt(0), parser.nextInt(0));