Skip to main content

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

scanimage-webui 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)

Uploaded Source

Built Distribution

scanimage_webui-1.2.5-py3-none-any.whl (85.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page