Webhook for Traccar#24762
Conversation
|
Hey there @ludeeus, mind taking a look at this pull request as its been labeled with a integration ( This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people. |
|
Traccar uses POST for their webhook if you set https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/WebDataHandler.java#L179 |
|
Thanks, but I'm focused on the Mobile Traccar Client. Especially the Android one. |
|
Since Traccar is open source, I suggest you contribute support for POST requests. |
|
OK, I'll create an issue for Traccar. But this doesn't answer my question. |
|
@balloob I've looked into the traccar code once more and realized they use POST request but the values as URL parameters. Is this working with the webhook component? |
|
Obviously yes. I've implemented and tested it with wget in this way. Just saw the URL parameters in the code and concluded at GET request without verifying it. So I have to verify Osmand as well. |
|
@escoand are you planning to finish here? |
|
@MartinHjelmare For me the integration seem production ready. Only the tests are failing because of my comment above. Can you help me here? |
|
@escoand Format the code using Black, that should make it pass. |
71603a7 to
8a18c10
Compare
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
|
This PR forgot to add translations for the config flow. |
|
Added in #26089 |
Breaking Change:
Nothing.
Description:
I've created a webhook integration for the Traccar Mobile Client. The same protocol is used by Osmand. Traccar is the simplest GPS tracker on the market and Osmand is one of the most advanced open source navigation apps for Android.
Related issue (if applicable): #24772
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10090
Example entry for
configuration.yaml(if applicable):none
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all..coveragerc.If the code does not interact with devices: