09.09.2017, 15:48
Good Morning to all
It could then have an .lp file in the / user / directory of the logic machine to download it to my computer every time an object is updated in my logic machine
my role wrote it in "recidente functions"
is the next:
that object generates it in the following url
http://192.168.1.242/user/objects.lp
so you can see the .lp file with all the objects
It could then have an .lp file in the / user / directory of the logic machine to download it to my computer every time an object is updated in my logic machine
my role wrote it in "recidente functions"
is the next:
Code:
objects_lp = [[<?
require('json')
require('apps')
objects = grp.all()
objects = json.encode(objects)
print(objects)
?>]]
io.writefile("/www/user/objects.csv", objects_lp)
that object generates it in the following url
http://192.168.1.242/user/objects.lp
so you can see the .lp file with all the objects