20:54:04 INFO: Java runtime name: OpenJDK Server VM vendor: Raspbian version: 11.0. 20:54:04 INFO: Operating system name: Linux version: 4.19.66-v7+ architecture: arm Nothing in logs that i can see 20:54:01 INFO: Shutting down server. | id | name | email | hashedpassword | salt | readonly | admin | map | distanceunit | speedunit | latitude | longitude | zoom | twelvehourformat | attributes | coordinateformat | disabled | expirationtime | devicelimit | token | userlimit | devicereadonly | phone | timezone | Please note that I run the python script on the same server as traccar.I have setup traccar using mariadb, and can see the default user present. ("GET request for ".format(self.path).encode('utf-8'))Ĭlient = mqtt.Client("Traccar") #create new instanceĬontent_length = int(self.headers) # true ("GET request,\nPath: %s\nHeaders:\n%s\n", str(self.path), str(self.headers)) Very simple HTTP server in python for logging requestsįrom rver import BaseHTTPRequestHandler, HTTPServer I will add more as I go (waiting for my car tracker) The python script only includes basic location messages. Unfortunately a direct connection of Traccar to openhab does not work (for unknown reasons) therefore I wrote a small python script which converts the Traccar event/position POST messages to MQTT messages: I came across this thread in a desperate search for an answer on how to connect Traccar to Openhab. That being said, and all, please have another look at the links from my last post if they could become a basis for that undertaking. Even if you’re fine with paying the price for the service (and not every smarthome user is), you’re always at risk of that company to change anything (as Nathan just experienced), to provide a bad service (outages, data disclosure, …) or to stop providing the service at any time e.g. Traccar is a free and open source modern GPS tracking system. Topic Freshness Author Posts Raspberry PI as server: 7 years ago: Phil Foulkes: 2: Traccar on RPi: 8 years ago: Anton Tananaev: 4: Traccar. That comes at a price, literally and figuratively. Demo Search Login Topic Tag: RASPBERRY PI. Those available (like moj.io) are not open - you can only use them indirectly by subscribing to the service that that company offers.Īnd any company to offer that bundle (like moj.io or also pace.car) tries to make money with providing that service or app. But at least as of today, there do not seem to be generic (“open”) combined devices available. If someone came up with a device to combine those two, that’s also fine. Now ‘all’ we need is an Android app to read data via BT from the OBD adapter, to decode and turn it into preferrably MQTT or HTTP to be sent over the mobile network to some cloud or home server. Permanently install that into the glove locker and attach it to your USB there to get its battery charged at any time. A generic OBD-II bluetooth adapter plus no Pi but a cheap or used smartphone to have BT, GPS and SIM/GSM. That’s basically my idea and recommendation, too. I guess we could always hack a bluetooth dongle, rpi0 and gsm hat and then send data to an mqtt server or something…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |