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.6.tar.gz
(84.9 kB
view details)
Built Distribution
File details
Details for the file scanimage-webui-1.2.6.tar.gz
.
File metadata
- Download URL: scanimage-webui-1.2.6.tar.gz
- Upload date:
- Size: 84.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4236698ea74ac442559ce8b1b3860a8d61ab2754f664f2f85e1c0216150ed700 |
|
MD5 | 1b5d096990b7a7ca4ed49008f1b008fa |
|
BLAKE2b-256 | 2468cd56add17bf08ede4ddbde0ea0ee267893db3083d57cc6d34fbfc00db1ee |
File details
Details for the file scanimage_webui-1.2.6-py3-none-any.whl
.
File metadata
- Download URL: scanimage_webui-1.2.6-py3-none-any.whl
- Upload date:
- Size: 85.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976dcce3b92050845b435a1c74fb4b2857be990d9e7909dd5ea8837062f30e4b |
|
MD5 | 60f3fcd3c453c777c2673caa86af480c |
|
BLAKE2b-256 | 55519e0d1dfd1687e941e4b26145fa4e8060eed509dbe880e9c1038767dfc4a9 |