so jetzt bin ich echt am ende. :'(
rechte (RWX=lesen schreiben ausführen) habe ich verteilt für die dateien extcommands.xml, Mainboardon.sh, Mainboardoff.sh, Lichton.sh und Lichtoff.sh.
NICHT vergeben sind die rechte sticky-bit, UID und GID.
wiringpi(v2.50) ist wie gesagt installiert.
die datei in /var/lib/Repetier-Server/database/extcommands.xml beinhaltet
<strike><config></strike>
<strike> <!--</strike>
<strike> If you want to run external commands, enter them in this configuration with</strike>
<strike> full path. You will see them in the main menu. Copy this file into the</strike>
<strike> <storage>/database directory.</strike>
<strike>
</strike>
<strike> Security consideration: The reason there is no online editor for this is simply</strike>
<strike> security. The commands you enter here are executed with the privileges of the</strike>
<strike> daemon running the server. If you would allow online configuration, a hacker could</strike>
<strike> simply add any command he needs to hack your system.</strike>
<strike> --></strike>
<strike> <command></strike>
<strike> <name>Shutdown Server</name></strike>
<strike> <execute>sudo /sbin/shutdown -h now</execute></strike>
<strike> <confirm>Really shut down the server?</confirm></strike>
<strike> <!-- Define if command should show up in local printer interface, default true.--></strike>
<strike> <local>true</local></strike>
<strike> <!-- Define if command should show up in remote printer interface, default true.--></strike>
<strike> <remote>true</remote></strike>
<strike> <!-- Define if command should show up only for users with print permission, default true.--></strike>
<strike> <print-permission>true</print-permission></strike>
<strike> <!-- Define if command should show up only for users with add files permission, default false.--></strike>
<strike> <add-permission>true</add-permission></strike>
<strike> <!-- Define if command should show up only for users with del files permission, default false.--></strike>
<strike> <del-permission>true</del-permission></strike>
<strike> <!-- Define if command should show up only for users with configuration permission, default false.--></strike>
<strike> <config-permission>true</config-permission></strike>
<strike> </command></strike>
<strike> <command></strike>
<strike> <name>Reboot Server</name></strike>
<strike> <execute>sudo /sbin/shutdown -r now</execute></strike>
<strike> <confirm>Really reboot the server?</confirm></strike>
<strike> <!-- Define if command should show up in local printer interface, default true.--></strike>
<strike> <local>true</local></strike>
<strike> <!-- Define if command should show up in remote printer interface, default true.--></strike>
<strike> <remote>true</remote></strike>
<strike> <!-- Define if command should show up only for users with print permission, default true.--></strike>
<strike> <print-permission>true</print-permission></strike>
<strike> <!-- Define if command should show up only for users with add files permission, default false.--></strike>
<strike> <add-permission>true</add-permission></strike>
<strike> <!-- Define if command should show up only for users with del files permission, default false.--></strike>
<strike> <del-permission>true</del-permission></strike>
<strike> <!-- Define if command should show up only for users with configuration permission, default false.--></strike>
<strike> <config-permission>true</config-permission></strike>
<strike> </command></strike>
<strike> <execute name="shutdown" allowParams="false" sync="false">sudo /sbin/shutdown -h now</execute></strike>
<strike> <execute name="reboot" allowParams="false" sync="false">sudo /sbin/shutdown -r now</execute></strike>
<strike><command></strike>
<name>Mainboard EIN</name>
<execute>/var/lib/Repetier-Server/scripts/Mainboardon.sh</execute>
<confirm>Mainboard einschaten?</confirm>
</command>
<command>
<name>Mainboard AUS</name>
<execute>/var/lib/Repetier-Server/scripts/Mainboardoff.sh</execute>
<confirm>Mainboard ausschaten?</confirm>
</command>
<command>
<name>Licht EIN</name>
<execute>/var/lib/Repetier-Server/scripts/Lichton.sh</execute>
<confirm>Licht einschaten?</confirm>
</command>
<command>
<name>Licht AUS</name>
<execute>/var/lib/Repetier-Server/scripts/Lichtoff.sh</execute>
<confirm>Licht ausschaten?</confirm>
</command>
</config>
_______________________________________
/var/lib/Repetier-Server/scripts/
_______________________________________
Mainboardon.sh
#!/bin/bash
gpio -g mode 16 out
gpio -g write 16 1
Mainboardoff.sh
#!/bin/bash
gpio -g mode 16 out
gpio -g write 16 0
Lichton.sh
#!/bin/bash
gpio -g mode 26 out
gpio -g write 26 1
Lichtoff.sh
#!/bin/bash
gpio -g mode 26 out
gpio -g write 26 0
auch wenn es blöd klingt, der bug mit der uhrzeit ist echt nerfig ;)
den standartscript habe ich gestrichen.dort sind keine änderungen vorgenommen,ist nur zum überliegen ob ich für das script auch die richtige position gewählt habe.
falls ich da jetzt noch ein fehler habe würde ich mich über korrektur freuen