Traccar

Aus SMB-Soft-Wiki
Wechseln zu: Navigation, Suche

Traccar

https://www.traccar.org/

GitHub

https://github.com/tananaev/traccar

https://github.com/tananaev/traccar/releases

QNAP

http://forum.qnap.com/viewtopic.php?t=109928

RaspberryPI

http://www.forum-raspberrypi.de/Thread-tutorial-tracking-server-mit-traccar
http://www.helsic.de/?p=2607
wget https://github.com/tananaev/traccar/releases/download/v3.14/traccar-linux-3.14.zip
root@raspberry:/home/pi # unzip traccar-linux-3.14.zip
root@raspberry:/home/pi # sudo ./traccar.run
sudo /opt/traccar/bin/traccar stop
sudo /opt/traccar/bin/traccar start
http://192.168.0.40:8082/
Install
•Run traccar.run (sudo ./traccar.run)
•Start service:◦3.8 and later: sudo /opt/traccar/bin/startDaemon.sh
◦3.7 and earlier: sudo /opt/traccar/bin/traccar start
Uninstall
•Uninstall service:◦3.8 and later: sudo /opt/traccar/bin/uninstallDaemon.sh
◦3.7 and earlier: sudo /opt/traccar/bin/traccar remove
•Remove traccar directory (sudo rm -R /opt/traccar)
Update
mv /opt/traccar opt/traccar_old

cp /opt/traccar_old/conf/defaault.xml /opt/traccar/conf/defaault.xml 
cp /opt/traccar_old/conf/traccar.xml /opt/traccar/conf/traccar.xml
cp /opt/traccar_old/conf/wrapper.conf /opt/traccar/conf/wrapper.conf
cp /opt/traccar_old/conf/wrapper.conf.default /opt/traccar/conf/wrapper.conf.default

MySQL

Konfiguration in traccar.xml

<entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
<entry key='database.url'>jdbc:mysql://192.168.0.xxx:3306/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES</entry>
<entry key='database.user'>root</entry> 
<entry key='database.password'>a....</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
<entry key='database.url'>jdbc:mysql://[HOST]:3306/[DATABASE]?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=</entry>
<entry key='database.user'>[USER]</entry> 
<entry key='database.password'>[PASSWORD]</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
<entry key='database.url'>jdbc:mysql://[HOST]:3306/[DATABASE]?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=</entry>
<entry key='database.user'>[USER]</entry> 
<entry key='database.password'>[PASSWORD]</entry>

JDBC

<entry key='database.driver'>org.h2.Driver</entry>
<entry key='database.url'>jdbc:h2:/opt/traccar/data/Qnap_traccar.db</entry>
<entry key='database.user'>sa</entry>
<entry key='database.password'></entry>


<entry key='database.driver'>org.h2.Driver</entry>
<entry key='database.url'>jdbc:h2:/opt/traccar/data/database</entry>
<entry key='database.user'>sa</entry>
<entry key='database.password'></entry>
<entry key='database.driver'>org.h2.Driver</entry>
<entry key='database.url'>jdbc:h2:./data/database</entry>
<entry key='database.user'>sa</entry>
<entry key='database.password'></entry>

Server

http://192.168.0.91:8182/
smb-soft.no-ip.org:8082
192.168.0.40:8082

traccar@smb-soft.de
12T....xx#1
sudo java -jar /opt/traccar/tracker-server.jar /opt/traccar/conf/traccar.xml &

Geräte

IPhone 247974
Samsung S5 Traccar 284523
Samsung S3 Hiden 134311 (To open it again dial 8722227 (TRACCAR).)
Samsung S3 409217
Samsung 2 353801060796293

Protokolle

OsmAnd

OsmAnd Live Tracking web address format:
http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}&timestamp={2}&hdop={3}&altitude={4}&speed={5}

http://smb-soft.no-ip.org:5055/?id=123456&lat=49.7&lon=11.7&timestamp=225446&hdop=0&altitude=100&speed=150