11 lines
296 B
Lua
11 lines
296 B
Lua
basepath = "/home/paul/git/micodus_server"
|
|
dbfile = string.format("%s/data/tracker.db",basepath)
|
|
query = [[
|
|
SELECT time,latitude,longitude,height,speed,direction,serial
|
|
FROM log
|
|
ORDER BY id DESC, serial DESC
|
|
LIMIT 1;
|
|
]]
|
|
|
|
return {["basepath"]=basepath, ["dbfile"]=dbfile, ["query"]=query}
|