![]() |
Resident script pump circulation - 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: Resident script pump circulation (/showthread.php?tid=1279) |
RE: Resident script pump circulation - Domoticatorino - 29.10.2018 (29.10.2018, 16:56)buuuudzik Wrote: Could you define what means "not working"? What is current state of your system? GREAT buuuudzik!! I knew that everyminute status of valve sending on bus his value but honestly I did not think that occur this problem. Now it is working. But if I set time valve status to 4 minutes you think problem will be again? Thanks a lot again. RE: Resident script pump circulation - buuuudzik - 29.10.2018 No, it should be send only on change. For monitoring of the device you can use heartbeat object or something similar. If you don't want change this repetition then you must create new object(could be virtual) and valve status must update its value by grp.checkupdate() method, but there is no reason and if you are working in automation then you must learn how to right use devices and then trust them ![]() ![]() RE: Resident script pump circulation - Domoticatorino - 29.10.2018 (29.10.2018, 20:33)buuuudzik Wrote: No, it should be send only on change. Thank you mate! RE: Resident script pump circulation - buuuudzik - 29.10.2018 You're welcome ![]() RE: Resident script pump circulation - CHOUAIBOU - 30.10.2018 (29.10.2018, 21:44)buuuudzik Wrote: You're welcome Hi buuuudzik, Please, why LM with javascript should be more efficient than with lua ? It is possible to use custom javascipt in visualization for some tasks, are talking about visualization or not ? B.R, Chouaibou. RE: Resident script pump circulation - Erwin van der Zwart - 30.10.2018 Hi, JS processes are using the client CPU and not the LM CPU. That’s why BR, Erwin RE: Resident script pump circulation - buuuudzik - 30.10.2018 You've probably confused threads, but ok ![]() I very like JS. This is very modern, fast(fast among script languages) and expressive language with a lot of staff which Lua doesn't have. I mean: nice, fast, chainable array methods, and a few characters shortcuts (arrow functions) Code: // Javascript Maybe this is stupid example but I like this array methods in JS and also that array are passed by reference. Creating objects is also very easy (also without classes). Another advantage of JS is its community and thousands of libraries. But unfortunately LuaJIT is faster so JS could be(but now it is not possible) only used via NODEJS only as a support for this main technology on server. But on client you have now JS and you can use it. And when you generate something via .lp file you can via Lua prepare raw data and in JS do most of work. But also without JS on server I will like LM because this is very, very nice device for creating powerful logic in a lot of powerful ways ![]() RE: Resident script pump circulation - CHOUAIBOU - 30.10.2018 (30.10.2018, 15:13)buuuudzik Wrote: You've probably confused threads, but okHi, Many thanks to Erwin and Buuudzik. You are wright, may be that is why they introduced the .lp file features in later FW to be able to mix HTML and LUA. P.S: In this thread, you were talking about your switching to JS, that is why I prefer to post my question here. ![]() B.R, Chouaibou. |