Ideas for new release
Hello, i have few notes which I miss in last version... would be nice, ff they were implemented in a new version:
- External commands for each printer: many of us have some kind of ON/OFF equipment with SSH control. I have 3 printers and now i have 8 entries in my system menu. ON/OFF for each printer and ON/OFF for lights. Not optimal. What about add option move these commands to printer menu where "Deactivate, Delete printer...." are in dashboard (for each printer different commands ofc)?
- Force default language - yeah, i know i can edit config file, but this working in IE only for me. In Chrome or Firefox still I have EN even when I have correct locale.
- Some kind of "IP cam commands" for printer cameras. I have PTZ IP camera which can be controled via URL with predefined positions. Would be nice, if i select printer nr. 1, than RS send request to IP cam (simple editable url request) to focus camera on current printer (nr. 1).
Comments
Whats wrong?
Scripts are run as user repetierserver as you see from auth log. So it is important that repetierserver has permissions to execute it. You might even need to add it in sudoers list to get root permission depending on what you do.
Per printer commands are ok. I think adding a slug to narrow the list would help here.
Not so sure about webcam as there are so many different kinds and most users will not be able to do such things and get confused.
I have only one preffered language in my Firefox - cz, and tried to change cs too.
User repetierserver has no password as you can also not login as that user (no shell). Maybe that is part of the problem as all scripts I have done so far use sudo and are in sudoers list so they get executed as root who has a shell.
<command>
<name>Turn lamp ON</name>
<execute>sudo /home/pi/Skripty/mfi.sh 4 1</execute>
</command>
<command>
<name>Turn lamp OFF</name>
<execute>sudo /home/pi/Skripty/mfi.sh 4 0</execute>
</command>
you start first argument so that must be set explicitly. mfi.sh is argument to sudo so with full path there sudo will find but it does not find sudo for now.
syslog - nothing
yes, repetierserver allowed to sudo without password.