Paste above the stuff before exit 0 and don't forget to save! So put them into startup properly to start them with your system. The problem ist that you have to restart your wlan after that and after reboot your settings get lost. You can play with this values and look what fits best for you. Rts and frag can b set 0 - 2347 and represents bytes. It helped me with my bad connection and i'm on a fresh installed raspbian light with linux latest dist 4.14.72-v7+ sudo iwconfig wlan0 channel autoĬonfirm with sudo iwconfig that all settings applied. If you want to confirm it by urself just look. Even the other informations above won't work for me. You should not work rename your nf to nf because it is blacklisted on dist Linux 4.14.72-v7+ due to driver problems. If not read in the Repetier-Server manual how to do it.From the perspective today. If you have created the sample extcommands.xml with shutdown you have done that already. If it goes false and then back to true it executes the shell command „sudo /sbin/shutdown -h now“ with the user repetierserver, so you must ensure /sbin/shutdown is in list of sudoers for user repetierserver. In loop we compare current state with last state. Default is pull-up resistor so when not pressed, the pin returns true. Here we want to do the same with an extra button, so we can shutdown the printer safely even if we have no display.įor this example a simple push button that is normally not connected is connected to pin 2 and GND. In advanced setup in tutorial we already have shown how to add a command for this. Shutdown Button local GPIO = periphery.GPIOįor health of sd card it is important to always shut down the pi so you get no defects on sd card. This makes it blink with approximately 1 second on and 1 second off. In loop we count loopCounter up to 100 and then invert blink variable and write value to pin 3. In setup the mode of operation gets defined. If you need more power google for a FET or transistor schematic. Connect a low amp led to pin 3, connect the other side to a 330 ohm resistor and to GND. Blink Example local GPIO = periphery.GPIO It is available via the periphery variable. The only difference is that you do not require the library. If the server runs under linux you can access GPIO pins. In that case the server will ignore the plugin until next restart. If your script contains errors, you will see the error message after the „Including lua file…“ message. 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. 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.
0 Comments
Leave a Reply. |