This lua script doesn't work and return a log error "running for more than 10 seconds":
Code: Select all
local handle=assert(io.popen('curl.exe 127.0.0.1:8081'))
local response = handle:read('*all')
handle:close()
This shell command works fine (in a terminal) and complete in about 5 sec:
Code: Select all
curl.exe 127.0.0.1:8081
Code: Select all
local handle=assert(io.popen('curl.exe www.google.fr'))
local response = handle:read('*all')
handle:close()
What am I missing ?
My aim is to read the log history of a temp sensor and test if temp goes under 0°C in the past few hours . (http://127.0.0.1:8081/json.htm?type=gra ... &range=day)