Currently scanservjs uses the default values from the used SANE backend to configure the web interface when first visiting it. It will do so for each new web session.
I would like to have a feature that stores the currently selected scan options for each scanner. This "state" of options is updated each time the user changes an option in the web UI. The state is restored when the web interface is accessed again, even in a new session. There should be a "Restore defaults" button to reset the values to the defaults of the SANE backend again.
The currently stored configuration values for each scanner are exposed through the API of scanservjs, similar to how the default values are now exposed.
Why do I want this feature?
Brother scanners have a "Scan to PC" function with four variations: "to OCR", "to File", "to Image" and "to E-mail". With this function, scanning parameters cannot be set on the scanner. In the original Windows software, scan parameters can be configured for each variation to be used when such an event is received.
Brother has a daemon for Linux (bscan-skey) which can capture these events and execute scripts. However, there is no user-friendly way to configure the scan parameters with this daemon. What I would like is to make a script for bscan-skey which:
- Reads the name of the scanner that fires an event (brscan-skey provides this).
- Gets the current scan options chosen by the user from scanservjs using the API. If the user has not (yet) chosen options or these were removed (e.g. using a "Restore defaults" button in the web interface), the default scan options will be used instead.
- Has scanservjs perform the scan with the relevant scan options using the API.
This function can also be used by different button daemons for other scanners that do not let the user choose scan options on the device. I know HP has some older scanners that are similarly "dumb" and need to be configured by the PC.
Currently scanservjs uses the default values from the used SANE backend to configure the web interface when first visiting it. It will do so for each new web session.
I would like to have a feature that stores the currently selected scan options for each scanner. This "state" of options is updated each time the user changes an option in the web UI. The state is restored when the web interface is accessed again, even in a new session. There should be a "Restore defaults" button to reset the values to the defaults of the SANE backend again.
The currently stored configuration values for each scanner are exposed through the API of scanservjs, similar to how the default values are now exposed.
Why do I want this feature?
Brother scanners have a "Scan to PC" function with four variations: "to OCR", "to File", "to Image" and "to E-mail". With this function, scanning parameters cannot be set on the scanner. In the original Windows software, scan parameters can be configured for each variation to be used when such an event is received.
Brother has a daemon for Linux (bscan-skey) which can capture these events and execute scripts. However, there is no user-friendly way to configure the scan parameters with this daemon. What I would like is to make a script for bscan-skey which:
This function can also be used by different button daemons for other scanners that do not let the user choose scan options on the device. I know HP has some older scanners that are similarly "dumb" and need to be configured by the PC.