You could run Traccar for asset tracking and get the locations to your app using Traccar API...
oke nejck,
how to check if the gps is connected?
it works on the traccar demo, but I got nothing when I change the gps IP to my server
You should follow troubleshooting guide:
thanks Anton, it helped me
I changed the database configuration (on traccar.xml) to my mysql database on the server, but traccar still get the data from h2 database. can anyone tell me what happened?
I'm guessing that you haven't restarted service.
"sudo /opt/traccar/bin/traccar restart" is that the right command to restarting the service? i still got no any table in my db
No, that's not the right command. What's the output when you run it?
Stopping traccar ...
YAJSW: yajsw-stable-12.12
OS : Linux/4.4.0-62-generic/amd64
JVM : Oracle Corporation/1.8.0_181//usr/lib/jvm/java-8-oracle/jre/64
Aug 20, 2018 10:21:47 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Aug 20, 2018 10:21:48 AM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STOPPING traccar ***********************
Aug 20, 2018 10:21:48 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 20, 2018 10:21:48 AM org.rzo.yajsw.os.posix.PosixService stopProcess
INFO: stop daemon with pid 31972
Aug 20, 2018 10:21:48 AM org.rzo.yajsw.os.posix.PosixService stopProcess
INFO: process not running
Aug 20, 2018 10:21:48 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar stopped
Starting traccar ...
YAJSW: yajsw-stable-12.12
OS : Linux/4.4.0-62-generic/amd64
JVM : Oracle Corporation/1.8.0_181//usr/lib/jvm/java-8-oracle/jre/64
Aug 20, 2018 10:21:49 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Aug 20, 2018 10:21:50 AM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************
Aug 20, 2018 10:21:50 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 20, 2018 10:21:50 AM org.rzo.yajsw.os.posix.PosixService startProcess
INFO: calling java -Dwrapper.pidfile=/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/traccar/wrapper.jar -c /opt/traccar/conf/wrapper.conf
Aug 20, 2018 10:21:50 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 20, 2018 10:21:52 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Aug 20, 2018 10:21:52 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started
so, what is the command to restart the service?
If you are using latest release, there should be no /opt/traccar/bin/traccar
. I would recommend you to do a clean installation of latest official release.
Run traccar.run (sudo ./traccar.run)
Start service: sudo /opt/traccar/bin/startDaemon.sh
is that what you mean?
I meant exactly what I said. You need a clean installation because what you have is not.
I have installed traccar-linux-4.0 on my server. then what?
Hello,
I already have an asset management system. I was asked to add an asset tracking feature, using a gps.
I'm feeling confused, where should I start. How can my existing app, get the asset location using gps imei?
hope someone could help me :)
thanks.