This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Download file .lp of logic machine automatic
#1
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:


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

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Download file .lp of logic machine automatic - by Carlos Padilla - 09.09.2017, 15:48

Forum Jump: