-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a69280
commit 52e868e
Showing
18 changed files
with
89 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
password= | ||
IMAGE="bash /opt/brother/scanner/brscan-skey/script/scantoimage.sh" | ||
OCR="bash /opt/brother/scanner/brscan-skey/script/scantoocr.sh" | ||
EMAIL="bash /opt/brother/scanner/brscan-skey/script/scantoemail.sh" | ||
FILE="bash /opt/brother/scanner/brscan-skey/script/scantofile.sh" | ||
IMAGE="python3 /opt/brother/scanner/brscan-skey/script/scantoimage.py" | ||
OCR="python3 /opt/brother/scanner/brscan-skey/script/scantoocr.py" | ||
EMAIL="python3 /opt/brother/scanner/brscan-skey/script/scantoemail.py" | ||
FILE="python3 /opt/brother/scanner/brscan-skey/script/scantofile.py" | ||
SEMID=b | ||
eth= | ||
ip_address= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/python3 | ||
# $1 = scanner device | ||
# $2 = friendly name | ||
|
||
import sys | ||
|
||
from scanner import read_environment, scan_rear | ||
|
||
if __name__ == "__main__": | ||
# Open the log file in append mode | ||
with open("/var/log/scanner.log", "a") as log: | ||
# Redirect stdout to the log file | ||
sys.stdout = log | ||
sys.stderr = log | ||
|
||
read_environment() | ||
|
||
device = None | ||
if len(sys.argv) > 1: | ||
device = sys.argv[1] | ||
scan_rear(log, device) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/python3 | ||
# $1 = scanner device | ||
# $2 = friendly name | ||
|
||
import sys | ||
|
||
from scanner import read_environment, scan_front | ||
|
||
if __name__ == "__main__": | ||
# Open the log file in append mode | ||
with open("/var/log/scanner.log", "a") as log: | ||
# Redirect stdout to the log file | ||
sys.stdout = log | ||
sys.stderr = log | ||
|
||
read_environment() | ||
|
||
device = None | ||
if len(sys.argv) > 1: | ||
device = sys.argv[1] | ||
scan_front(log, device) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/python3 | ||
# $1 = scanner device | ||
# $2 = friendly name | ||
|
||
import sys | ||
|
||
if __name__ == "__main__": | ||
# Open the log file in append mode | ||
with open("/var/log/scanner.log", "a") as log: | ||
# Redirect stdout to the log file | ||
sys.stdout = log | ||
sys.stderr = log | ||
|
||
print("ERROR!") | ||
print("This function is not implemented.") | ||
print("You may implement your own script and mount under $0.") | ||
print( | ||
"Check out scripts in same folder or https://github.com/PhilippMundhenk/BrotherScannerDocker for examples." | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/python3 | ||
# $1 = scanner device | ||
# $2 = friendly name | ||
|
||
import sys | ||
|
||
from scanner import read_environment, scan_front | ||
|
||
if __name__ == "__main__": | ||
# Open the log file in append mode | ||
with open("/var/log/scanner.log", "a") as log: | ||
# Redirect stdout to the log file | ||
sys.stdout = log | ||
sys.stderr = log | ||
|
||
read_environment() | ||
|
||
device = None | ||
if len(sys.argv) > 1: | ||
device = sys.argv[1] | ||
scan_front(log, device, ["--mode=True Gray"]) |
This file was deleted.
Oops, something went wrong.