Can I create a geozone and be alerted by SMS

pierrot109 years ago

Dear Anton
The cell location is not close of the reality. When I take the train, it never get the GPS (which is normal) and cell location is up to 20km from left or righ from train railway. Some time I got a cell location in India a Russia.
I would like to show the cell location in my map, but I would like its as unvalid and having a special icon for it. If the valid field is 0, then I can display a special icon for cell location.

But if the valid field is always set to 1, why we need that field if there is no variation of it's valid?
For which case, it will be set at 0?

Also, in traccar UI, in the filter, there an option to hide invalid location!?

So, in other words, I would like to distingish Cell and GPS location

Cheers

pierrot109 years ago

Would it possible to do something like this

case "valid":
                position.setValid(value);
                    break;

in
https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/OsmAndProtocolDecoder.java
?

Anton Tananaev9 years ago

I have added support for "valid" flag. It should be either "true" or "false".

Here is a new build:

https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar?dl=0

pierrot109 years ago

Dear Anton,

Thank a lot for that file.
Unfortunately, I renamed and copied the file you privded to /opt/traccar/ and then I could not start traccar any more.
Here is the log

INFO   | jvm 1    | 2016/01/18 19:57:06 | WrapperSimpleApp Error:       ... 8 more
STATUS | wrapper  | 2016/01/18 19:57:08 | <-- Wrapper Stopped
STATUS | wrapper  | 2016/01/18 19:57:37 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2016/01/18 19:57:37 | Java Service Wrapper Community Edition 32-bit 3.5.27
STATUS | wrapper  | 2016/01/18 19:57:37 |   Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2016/01/18 19:57:37 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2016/01/18 19:57:37 | 
STATUS | wrapper  | 2016/01/18 19:57:38 | Launching a JVM...
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperManager: Initializing...
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp: 
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error: Encountered an error running main:
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error: java.lang.NoClassDefFoundError: liquibase/resource/ResourceAccessor
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at org.traccar.Context.init(Context.java:121)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at org.traccar.Main.main(Main.java:29)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at java.lang.reflect.Method.invoke(Method.java:497)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at java.lang.Thread.run(Thread.java:745)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error: Caused by: java.lang.ClassNotFoundException: liquibase.resource.ResourceAccessor
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
INFO   | jvm 1    | 2016/01/18 19:57:38 | WrapperSimpleApp Error:       ... 8 more
STATUS | wrapper  | 2016/01/18 19:57:40 | <-- Wrapper Stopped

I put back the previous tracker-server.jar and the traccar could start...

Thanks for your support

Anton Tananaev9 years ago

You need to install it on top of Traccar version 3.3.

pierrot109 years ago

What do you mean by "on top".
PS: I still have version 3.2 because the last traccar-web is not compatible with traccar 3.3 yet.

Anton Tananaev9 years ago

Why do you think it's not compatible?

Anyway, you need to install version 3.3 first if you want to use the new build.

pierrot109 years ago

Some day agao, I install traccar 3.3 and the traccar-web. There were some issue to login.
Vitalidze told me that traccar-web is not supported for traccar 3.3 yet.
Then I reinstalled traccar 3.2

Anton Tananaev9 years ago

Well, in that case I guess you have to wait.

pierrot109 years ago

Dear Anton,
I upgradte traccar to 3.3 and I installed the web ui version.
It's work fine, but I still van not update the valid filed

http://server.dyndns.org:5055/?id=865067020424221&valid=1&lat=46.201251&lon=6.102916&speed=2.41&altitude=434.03&heading=311.609985&batt=70&desc=GPS%20localisation&timestamp=2016-02-14%2011:17:21

The above URL will keep the valid fiel to 0 and add this in my 'Other' filed
{"valid":"1","battery":"70","desc":"GPS localisation","ip":"178.xxx.72.62"}

I do not want to have it in 'Other' filed but I would like to update the field 'valid'.

I understood that valid field will be ready for version 3.3, that right?

I have other question.
From the web interface, how can I see a visual information about traccar version?
Does traccar 3.3 show arror the see the direction of the move?

Thank a lot

Anton Tananaev9 years ago

Valid field was added after version 3.3. Try this build:

https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar?dl=0

Traccar 3.3 does show direction.

pierrot109 years ago

Hello Anton
Thank but it does not work but something change
The 'valid' field do not change to 1 when I insert that URL
http://cccc.dyndns.org:5055/?id=865067020424300&valid=1&lat=46.214439&lon=6.127311&speed=28.59&altitude=378.97&heading=294.179992&batt=65&desc=GPS%20localisation&timestamp=2016-02-14%2018:10:48

Even, I go to my phpmysql admin panel, I can not change it to 1

The difference now, the filed 'other' show this
{"battery":"67","desc":"GPS localisation","ip":"178.000.72.62"}

instead of
{"valid":"1","battery":"67","desc":"GPS localisation","ip":"178.000.72.62"}

Thank for your support

Anton Tananaev9 years ago

You need to send "true" as a value.

pierrot109 years ago

Great!! it's work. Thank