![]() |
|
HTML in LogicMachine - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: HTML in LogicMachine (/showthread.php?tid=6191) |
HTML in LogicMachine - JuLopez - 17.11.2025 Hi group! I'm trying to use HTML to have an editable table in LogicMachine, the goal in this project is to give the user the possibility to edit a list of users. I have a script were I put my HTML page. My bdd is in a .json script, and in my HTML code I have two funtion, x_get.lua and x_save.lua. In my x_get.lua i have the next script: Code: content("application/json")In my x_save.lua Code: content("application/json")The firmware version of my homeLYnk is: HW: LM5 Lite (i.MX6) The problem is that when i try to get into my get.lua, the response is a text, not the list of user that i have in my .json script. In my version of LM I don't get acces to the /user/ file or the /ww/ file, I ask ChatGPT and it said that I have to create my scripts in those files, because when I try to get into the next url: IP-Server:port/x_get.lua, the response is a text and when I try to get into IP-Server:port/x_save.lua the response is 404 Not Found. I try to update some packages in the LM, from an new version of homeLYNk, but the packages are: url.lua ftp.lua http.lua and the packages that are supported are .ipk. I cannot upgrade the firmaware of the LM, because I don't want to lose the connection with the phisical machines that I have in the project. Can someone help me with this issue please? Will appriciated! RE: HTML in LogicMachine - Daniel - 17.11.2025 Why don't you use User access app? RE: HTML in LogicMachine - JuLopez - 17.11.2025 (7 hours ago)Daniel Wrote: Why don't you use User access app? I have an interface, and I have two type of user, a master user that will have the possibility of edit the list of co-worker spaces, and other user that will only be able to visualize the list, it will not be able to edit any co-worker space. Now, the list is server in a HTML page, but it doesn't save the changes that I made, edit, add new one or delete it. RE: HTML in LogicMachine - RomansP - 17.11.2025 Hello, Please use the tested solution, which is the User Access Control application. Within this application, you can configure different user roles: 1.) Users with access to the User Access Control app will be considered administrators. They will have the ability to add new users or remove existing ones. 2.) Users without access to this app will be standard users. RE: HTML in LogicMachine - JuLopez - 17.11.2025 I don't think I explained myself clearly. The application only has two types of users: The master user, who owns the building (and the project), and has complete control over the entire project. The viewer user, who can only see the machine statuses and modify temperature settings according to the needs of their "clients." What I need is a client list that the master user can modify. For example, if a client doesn't renew their rental agreement, the master user should be able to remove them from the list (displayed on the HTML page). Alternatively, if a client wants to rent additional areas or spaces, they could make a change. Clients don't have access to this view. Only the master user and the viewer user, who will be at reception, have access. I only need to change the name of the client in the areas or spaces, on my HTML table, I don't need to give the clients access to the app RE: HTML in LogicMachine - Daniel - 17.11.2025 This is exactly what they User access app does. RE: HTML in LogicMachine - JuLopez - 17.11.2025 Sorry if my question is a fool question, but, where I can find the user access app? I see the user acces on LM, where I do the manage user access to the control panel. In the user access on LM I have the two user accounts (master and viewer), but where do I put the client list? These clients won't have access to the control panel; it's simply so the master user can edit the clients for the co-working spaces. This is my Usser Access that I can see RE: HTML in LogicMachine - Daniel - 17.11.2025 As all apps User access app is in the app store, + in top right corner of a home screen. RE: HTML in LogicMachine - JuLopez - 17.11.2025 (5 hours ago)Daniel Wrote: As all apps User access app is in the app store, + in top right corner of a home screen. Daniel, when I try to get into my script x_get.lua, it's give me the response in the pic. I have a scrtipt that give me an HTML table, the code is: Code: local html = [[The user access app, it's usefull when we have to control a several users, i just have 2, and this list that i need is for clients or lease owners that can change anytime. This clients do not need to have access to the control, so, i don't need to create users for them. I just need an editable table that contains this lease owner's names for eah co-workers space. I already look for the app, and in the app store, I found apps but it is for user management, and I do not need that, I just need an editable table that the master user could change anytime. |