WEB UI for SANE scanimage command.
Project description
ScanImage WEB UI
WebUI for linux SANE command scanimage
. Application is based on Python
and JavaScript. Runs on localhost:7800 or other specified port.
This tool enables you to use your USB scanner as network scanner
for many users. It can be run on Raspberry Pi for example Rapsbian
Linux system distribution.
Instalation
apt update && apt install sane-utils
wget https://gitlab.com/alda78/scanimage-webui/-/archive/master/scanimage-webui-master.tar && \
tar -xf scanimage-webui-master.tar && \
cd scanimage-webui-master/ && \
sudo python3 setup.py install && \
cd ../ && \
sudo rm -rf scanimage-webui-master/
or simply
apt update && apt install sane-utils
pip3 install scanimage-webui
Running
scanimage-webui --help
usage: scanimage-webui [-h] [-p PORT] [-d SCAN_DIRETORY]
Scan Image WEB UI v1.2.3
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT APP server port
-d SCAN_DIRETORY, --scan-directory SCAN_DIRETORY
Directory where scanned images will be stored.
systemd configuration
echo '[Unit]
Description=ScanImageWebUI
[Service]
ExecStart=/bin/sh "/usr/local/bin/scanimage-webui >> /var/log/scanimage-webui.log 2>&1 &"
ExecStop=killall scanimage-webui
ExecRestart=/bin/sh "killall scanimage-webui && /usr/local/bin/scanimage-webui >> /var/log/scanimage-webui.log 2>&1 &"
ExecStatus=ps -ax | grep scanimage-webui
Type=forking
[Install]
WantedBy=multi-user.target
' > /lib/systemd/system/scanimage-webui.service
systemctl enable scanimage-webui.service
after that is possible to use
systemctl start scanimage-webui.service
Screenshot
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scanimage-webui-1.2.5.tar.gz
(84.8 kB
view hashes)
Built Distribution
Close
Hashes for scanimage_webui-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fd9fbd1d9fe9fe6634f24eeaca9d32b4fac41c6fb2ecab76e960f097b31a3a |
|
MD5 | c62a73d1039f87f1767f4453592ddb2c |
|
BLAKE2b-256 | 1a4efcf25845627f21d6e90f203f936b81717229915815d3398a7305b4b77b76 |