Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Grafana Trackmap Panel #65

Closed
amotl opened this issue Nov 20, 2021 · 1 comment · Fixed by #100
Closed

Compatibility with Grafana Trackmap Panel #65

amotl opened this issue Nov 20, 2021 · 1 comment · Fixed by #100

Comments

@amotl
Copy link
Member

amotl commented Nov 20, 2021

Hi there,

people using Kotori for tracking moving objects are often avid fans of the TrackMap Panel for Grafana by @pR0Ps and contributors (cheers!).

As originally reported at #31, it appears that grafana-trackmap-panel expects that the latitude and longitude attributes to be stored within InfluxDB fields. Currently, Kotori stores them into InfluxDB tags instead, based on a simple heuristic.

if "latitude" in data and "longitude" in data:
chunk["tags"]["latitude"] = data["latitude"]
chunk["tags"]["longitude"] = data["longitude"]
del data['latitude']
del data['longitude']

We might think about changing that default behavior and making it configurable instead.

With kind regards,
Andreas.

@amotl
Copy link
Member Author

amotl commented Nov 20, 2021

In order to turn off the current behavior, please use Kotori from the repository and adjust those lines within kotori/kotori/daq/storage/influx.py accordingly:

-if "latitude" in data and "longitude" in data: 
+if False and "latitude" in data and "longitude" in data: 
    chunk["tags"]["latitude"] = data["latitude"] 
    chunk["tags"]["longitude"] = data["longitude"] 
    del data['latitude'] 
    del data['longitude'] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant