Added instructions

This commit is contained in:
Ace 2018-09-25 22:57:50 +02:00 committed by GitHub
parent 053c78764e
commit 97c686c637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,13 +12,16 @@ backup of the entire 'Calendar" folder first.
Copyright by Ace-Laboratory
"""
# Usage:
# 1) Downlaod this file and copy the downloaded file to the raspberry (via VNC or WinSCP)
# 2) Execute the file without any modifications
# 3) In the section just below, change 'other/' to 'months/' and then execute again. Reboot and you're done.
#--------------only change the following two lines-----------------#
input_path = '/home/pi/E-Paper-Master/Calendar/other/'
output_path = '/home/pi/E-Paper-Master/Calendar/other/'
#-----------------no need to change anything below-----------------#
"""
Info: These path contain the bmps that require converting.
1) /home/pi/E-Paper-Master/Calendar/months/
@ -47,8 +50,8 @@ try:
print('checking if the output path exists...')
os.makedirs(output_path)
except OSError as e:
print('Oh, the output path exists already.')
print('Will attempt to overwrite all files')
print('Oh, the output path exists already. Assuming you know what you are doing.')
print('Will attempt to overwrite all .bmp files')
if e.errno != errno.EEXIST:
raise