updated pranning
After Width: | Height: | Size: 2.3 KiB |
@ -1,4 +1,19 @@
|
|||||||
import os
|
import os
|
||||||
# first scan a page
|
# first scan a page
|
||||||
scanning = "scanimage --resolution 300 --mode gray -o reading.png"
|
scanning = "scanimage --resolution 300 --mode gray -o reading.png"
|
||||||
os.system(scanning)
|
os.system(scanning)
|
||||||
|
|
||||||
|
|
||||||
|
import calendar
|
||||||
|
import time
|
||||||
|
# Current GMT time in a tuple format
|
||||||
|
current_GMT = time.gmtime()
|
||||||
|
# ts stores timestamp
|
||||||
|
ts = calendar.timegm(current_GMT)
|
||||||
|
copy=f"cp reading.png timestamps/reading-{ts}.png"
|
||||||
|
os.system(copy)
|
||||||
|
|
||||||
|
|
||||||
|
printing = "lp reading.png"
|
||||||
|
os.system(printing)
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 4.3 MiB |
After Width: | Height: | Size: 4.5 MiB |
After Width: | Height: | Size: 4.5 MiB |
After Width: | Height: | Size: 4.6 MiB |
After Width: | Height: | Size: 4.6 MiB |
After Width: | Height: | Size: 4.3 MiB |
After Width: | Height: | Size: 5.5 MiB |
After Width: | Height: | Size: 5.6 MiB |
After Width: | Height: | Size: 4.8 MiB |
After Width: | Height: | Size: 4.3 MiB |