Coder Social home page Coder Social logo

ivanfm-traccar-mqtt's People

Contributors

dependabot[bot] avatar ivanfmartinez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ivanfm-traccar-mqtt's Issues

Error with traccar version 4.6

Hi,
With the new traccar version 4.6, i get the following error:

2019-09-04 15:36:58 INFO: trying to connect to mqtt : tcp://localhost:1884 2019-09-04 15:36:59 ERROR: org.traccar.database.DeviceManager.lookupAttributeString(JLjava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; - NoSuchMethodError (... < BaseDataHandler:27 < ... < *:29 < ... < ExtendedObjectDecoder:64 < ... < WrapperContext:102 < ...) 2
there is a hint in:
https://www.traccar.org/forums/topic/traccar-server-custom-jar-file-error/
but wasn't able to solve the problem.

Regards

Hubert

Send data test

How about my friend, I am in test mode with traccar and mqtt as I send test data to traccar from mqtt?

thank you very much for such a good alternative

Regards

How to install ivanfm-traccar-mqtt?

Hi,
I was able to build 2 jar files:
ivanfm-traccar-mqtt-2.2.1-jar-with-dependencies.jar
ivanfm-traccar-mqtt-2.2.1.jar
copied them to the lib folder of traccar
and added the following in my traccar.xml:
<entry key='extra.handlers'>"com.ivanfm.traccar.MQTTHandler"</entry>
<entry key='mqtt.url'>tcp://localhost:1883</entry>
<entry key='mqtt.clientid'>traccar.mqtt.handler</entry>
<entry key='mqtt.topicRoot'>_traccar/</entry>

But when starting traccar i see in the log file:
2018-11-18 22:02:33 INFO: Starting server...
2018-11-18 22:02:33 WARN: Dynamic handler error - "com.ivanfm.traccar.MQTTHandler" - ClassNotFoundException (... < BasePipelineFactory:331 < *:291 < ...)

What's the right way to integrate ivanfm-traccar-mqtt?
Thanks and regards

Hubert

Installation without compiling

Hello, I've got the idea to look if there is some "plugin" for traccar allowing to publish MQTT data from received devices, and I see you already have handled this. However my skills with java is not enough to add this to source files and compile it somehow to successfully use it. Is there way I could just download precompiled installation zip and put it on server as package from official website ?
thank you

Payload as JSON?

Nice work; this is very interesting.

Are you aware of the OwnTracks project? We provide Open Source apps (iOS and Android) which use an MQTT broker onto which positions from the mobile devices are published and from which positions of, say, friends or family are obtained to show in a list of friends.

We have designed a payload format (which we lovingly call OwnTracks JSON) which uses standard JSON with some defined elements. This is quite extensively documented.

As a matter of interest, we also created a Traccar Protocol decoder (aptly named owntracks) which can be used to feed Traccar with our OwnTracks JSON via HTTP.

I'm mentioning this as it may be something you'd like to support in your traccar-mqtt plugin.

MQTT Password and User

Hi,

My MQTT broker has a password and username. Is it possible to add these to the config file ?

kind regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.