we also had our times when learning the behavior of the Worldmap Panel wrt. InfluxDB. Please try to route your fields to the plugin using an "alias".
While depicted as "boom" in the example below, we usually just call it "metric" ;].
Good luck and with kind regards,
Andreas.
Example
References
While these are coming from a topic related to OpenTSDB (Opentsdb and worldmap panel), it might actually be related and just mean that - while a bit counterintuitive - the ALIAS is the magic button here.
Outlook
We will try to have a look if this can be improved as we are currently working on some improvements to the Worldmap Panel anyway.
Andreas, thanks for your reply. I did add an alias(boom) but with no effect The Query Inspector looks fine (as far as i can see that) but still no data on the map.
Sorry to hear that. Did you configure your data source metric like outlined above? As you can see below, the "geohash" and "station_id" (probably "name" on your side) symbols have been set up as tags.
As I can see it is in fact the “geohash” tag you are using now, you should probably also configure the field mapping like depicted here, swapping "station_id" by "name", eventually.
Please let’s just use "metric" as a symbol/alias for the Metric Field, right? Sorry for giving you such a bad example for demonstration purposes.
Worldmap Panel is a bit tricky, still good luck making it work for you and let me know about your progress.
Hi Andreas, i already tried that with the error message no geohash found. I think something is not working with the tags at my side. To you get an selection field tag when u press the + after group by ? I dont get it and typed tag (geohash) manually
Ok, let’s investigate. Assuming it is important for the Worldmap Panel to have the respective (metadata) columns established as tags instead of fields, I would like to show you how our database layout looks like. You might be able to find out more about the reason why it does not work yet on your side.
> show tag keys from ldi_readings;
tagKey
------
geohash
sensor_id
station_id
Fields
> show field keys from ldi_readings;
fieldKey fieldType
-------- ---------
P0 float
P1 float
P2 float
durP1 float
durP2 float
humidity float
max_micro float
min_micro float
pressure float
pressure_at_sealevel float
ratioP1 float
ratioP2 float
samples float
temperature float
So…
All the metadata you want to query for should most probably go into InfluxDB tags, while all the (numerical) measurement values should go as regular fields. For you, this would only be RSSI_DL and maybe SNR_DL.
a) What does "show tag keys" say for you?
b) Will you be able to get the database into such a shape - now that you know where you are aiming at?
i did change the InfluxDB to use tags for geohash and name (had to adjust the node-red flow for that but straight forward)
That looks good in Grafana right now
your setup and configuration looks way better than initially – congratulations.
Sorry to hear that it’s still not working for you. I can vividly remember our frustrations when approaching the Worldmap Panel the first time the other day. After investing time to learn its behavior and inner mechanics, things became clearer after each iteration.
Please also make sure to get the time domain absolutely right. I mean server time, workstation time and measurement time. Otherwise, data just won’t show up. You also might want to display your data in a regular graph panel first. However, I’m assuming this already works for you.
leaflet.js itself obviously has lots of things going on with ".x" attributes/properties. However, I have never seen errors like this on our journey but will nevertheless be curious about their origin.
Good luck fiddling with the parameters – if I only could help you better. So, please let me know of any progress you might be able to make. Otherwise, you might want to share an excerpt of your data to make your case reproduceable.
Hi Andreas
i did a dump of the database. The measurement adeunis is the old one without tags, the measurement loradb mapper is the new one with tags Is there a way to attach the .rar file here ?
# We'll need a database console for the next steps.
$ influx -database ttndata -precision rfc3339
Schema
> show tag keys from loradbmapper
tagKey
------
geohash
name
> show field keys from loradbmapper
name: loradbmapper
fieldKey fieldType
-------- ---------
RSSI_DL float
SF string
SNR_DL float
application string
counter float
lat float
lon float
So, I’m a bit clueless why it won’t work on your setup. Please make sure you are using the appropriate measurement (did you actually choose "loradbmapper" over "adeunis" on the “Queries” tab after switching gears?) and also check the selected time range again:
Otherwise, just get back to us. We will be happy to hear about any progress you might be able to make on this.
I check the settings again. Everything fine but no data an the map. But centering the map on the last geohash did work - well lets try do create a brand new dashboard with the same settings. And that was the solution. It works now !! I tried also to delete the worldmap panel in the older dashboard and create it again in the older dashboard. That does not work. So something bad with the older dahboard (but thats OK it is just a couple of seconds creating a new one)
This was happening to me. In my case it was happening because I had another plugin installed (Track Map). After I remove the other plugin the problem was solved.