ivanfmartinez / ivanfm-traccar-mqtt Goto Github PK
View Code? Open in Web Editor NEWmqtt handler for traccar
mqtt handler for traccar
Olá Ivan, gostaria de saber onde posso baixar o o fonte do Traccar para compilar e testar esse excelente recurso MQTT ?, baixeio o fonte do ramo principal do Traccar porém não encontrei os arquivos!
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
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
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
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
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.
Hi,
My MQTT broker has a password and username. Is it possible to add these to the config file ?
kind regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.