

15:45:46: Including lua file /var/lib/Repetier-Server/lua/a If everything is ok, you will see something like this: 15:45:46: LUA initalization finished. > tail -100 /var/lib/Repetier-Server/logs/server.log To check if your script compiles correctly, check the last 100 lines of the server.log: To test a newly uploaded or modified file you need to restart the server:Įspecially if you are new to lua, you might add some syntax errors. These are only available in modules that are integrated into the normal flow of the server, while this monitoring function is for independent code.
#Repetier server tutorial registration#
What you can not use are the registration methods below „Integrating into the server“ section. If loop is too cpu intensive the frequency will drop down.įor interaction with the server internals you can find available objects here: It MUST return so other plugins get their loop function also called. The loop function is later called 100 times per second.

The setup function is called once at server startup. The minimum plugin would look like this: function setup() You can use them to to monitor the printers and add automatic actions on some conditions or you can write or read pins on the computer (only for linux). These scripts have direct access to the server data structures and can also send messages or commands. Starting with version 0.91.0 you can put lua scripts into /var/lib/Repetier-Server/lua folder and they get called approx.
