If it is of any interest, here is a little POC i did to show node location history on a map.
I have a Linux VM connected to a T-Beam. This collects the location updates using Python and dumps it to a text file as JSON
Telegraf picks it up and pushes to InfluxDB
Grafana with the TrackMap visulisation then displays the map and location.
It broke when the time stamp i was using was dropped in 7.11
If my Python was better (existent) then it would write directly to influx without Telegraf.
If its of any use, here is the Python & Telegraf config
import meshtastic
import json
from pubsub import pub
def onReceive(packet): # called when a packet arrives
#print(f"Received: {packet}")
file = open("/tmp/json.out","a")
#print(f"Raw: {packet}")
j = json.dumps(packet)
file.write(f"{j}\n")
#print(f"JSON: {j}")
#file.close()
pub.subscribe(onReceive, "meshtastic.receive")
interface = meshtastic.StreamInterface()
telegraf.conf
[[inputs.tail]]
files = ["/tmp/json.out"]
from_beginning = false
watch_method = "poll"
pipe = false
data_format = "json"
json_strict = false
json_query = ""
tag_keys = [
"fromId",
"decoded.user.id"
]
json_string_fields = ["id", "longName", "shortName", "macaddr", "fromId", "toId"]
json_name_key = "meshMeasurement"
json_time_key = "rxTime"
json_time_format = "unix"
json_timezone = "UTC"