18.09.2017, 09:57
Hello,
is it possible to download the latitude and longitude from LM in lua to use it in apps?
is it possible to download the latitude and longitude from LM in lua to use it in apps?
Download lat&long from LM
|
18.09.2017, 09:57
Hello,
is it possible to download the latitude and longitude from LM in lua to use it in apps?
18.09.2017, 10:31
These variables can be nil if no latitude/longitude is set:
Code: <?
I've tried to use it in Resident script (of course without <?) but it returns below error:
Resident script:2: attempt to call global 'getconfig' (a nil value) stack traceback: I've used your solution and now I send get request to .lp file but interesting thing is that I must fill also login and password when I try to connect localhost(this is from demo machine): Code: http = require "socket.http"
20.09.2017, 12:49
From scripts you can use:
Code: require('uci')
For sure this is much more easier solution, and last solution was little complicated. Is this also for deamon scripts?
20.09.2017, 14:27
This will work anywhere, in apps as well.
|
« Next Oldest | Next Newest »
|