Files
home-docker/generate-location.lua
T
2022-04-05 15:27:52 +10:00

7 lines
209 B
Lua

function generate_location(tag, timestamp, record)
if record["latitude"] ~= nil then
record["location"] = record["latitude"] .. "," .. record["longitude"]
end
return 2, timestamp, record
end