LUA scripting using ChatGPT for the LogicMachine - Printable Version +- Logic Machine 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: LUA scripting using ChatGPT for the LogicMachine (/showthread.php?tid=4780) |
LUA scripting using ChatGPT for the LogicMachine - managementboy - 22.05.2023 Hi everyone, just tried talking to ChatGPT to ask it to code me a script to get my external IP, store it locally and if there is a change to update my no-ip dyndns for me. Check out this code it returned on the first try: Code: -- Import required libraries the only change necessary was removing the local storage = require("storage") line and it runs in a resident scrip without fail! RE: LUA scripting using ChatGPT for the LogicMachine - domotiqa - 07.11.2024 cool, what was the prompt you use ? RE: LUA scripting using ChatGPT for the LogicMachine - Erwin van der Zwart - 07.11.2024 O god please don’t go this way, i’m starting to get scripts from SI’s that also created them via ChatGPT, but they don’t work and asking me to check it, i came to a point that my advise is: put it back in ChatGPT and ask why it does not work.. In other words, if you go this way without any idea what you are doing because you think AI will solve your issues, sorry your on your own.. RE: LUA scripting using ChatGPT for the LogicMachine - domotiqa - 13.11.2024 Yeah but it is important to see what these AI can do. Some customer start to speak about HA and AI. I already did integration between LM sending email to chatgpt with csv to analyse. A good point is that with all his API LM is still a good solution. RE: LUA scripting using ChatGPT for the LogicMachine - Ranjeet - 21.11.2024 Hii Sir , I have created visualization where when i created area (Master Bedroom).on left side of this area i have put light icon with object. When we click on this area it will go to master bedroom page where all lights are given So I need lua script where if any Lights are ON in this area then it should show on master bedroom left icon which i created.if lights are off then it should also reflect on icon RE: LUA scripting using ChatGPT for the LogicMachine - admin - 21.11.2024 Please create a separate thread next time since your question is not relevant to this topic. Use this script for central status: https://kb.logicmachine.net/scripting/logic-functions-central-statuses/ |