-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.cfg
449 lines (364 loc) · 14.2 KB
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
; No need to restart service after changing any of those values
; as this file is loaded per every display refresh/run
; Run the main script with flag --check-config to verify configuration
[Sources]
# Set 1 to get photos from Google Photos.
; The rest of the values in this section regarding GP should be filled as well when enabled.
# ACTIVATION IS NEEDED! Check documentation.
# Default: 1 (enabled)
use_google_photos=1
# Google API credentials filename and path.
# Default: credentials.json
cred_file=credentials.json
# Google API token pickle filename and path to save authentication token for further use.
# Default: token.pickle
pickle_file=token.pickle
# Names of the photo slide source albums in Google Photos.
; Multiple allowed - comma separated (e.g. Greece 2020,Tom's 2nd birthday).
# Empty means all. Default: empty
album_names=
# Refresh rate for data from the Google Photos API.
# Possible values: always = every frame refresh, once = once a day.
# This is to prevent a large number of photos from hitting the daily API limit (10k calls).
# Default: always
refresh_rate=always
# Set 1 to get photos from local storage.
; The rest of the values in this section regarding local should be filled as well when enabled.
# Default: 1 (enabled)
use_local=1
# Path of photos in local storage.
# Folder will be created if not exists.
# Default: 1 (enabled)
local_path=photos
# Set 1 to get photos from local storage recursively from subfolders.
# Default: 1 (enabled)
local_subfolders=1
[General]
# Temperature units.
# One of the values: metric or imperial
# Default: metric
units=metric
# Path of the downloaded original photo slide and conversion location.
# Default: .
photo_convert_path=.
# Download name of the original photo slide.
# Leave only name in photo_download_name as the extension will be added automatically.
# Default: origphoto
photo_download_name=origphoto
# Converted name of the current photo slide showed on the display.
# Default: photo.bmp
photo_convert_filename=photo.bmp
# Converted photo slide thumbnail filename.
# Default: photo_thumb.jpg
thumb_photo_convert_filename=photo_thumb.jpg
# Original photo slide thumbnail filename.
# Default: origphoto_thumb.jpg
thumb_photo_download_name=origphoto_thumb.jpg
# Path and name of ePiframe service log files.
# Path will be created if doesn't exists.
# Use empty to disable logs.
# Default: logs/ePiframe.log
log_files=logs/ePiframe.log
# Path and name of the ImageMagick convert tool binary.
# Default: /usr/bin/convert
convert_bin_path=/usr/bin/convert
# Path and name of the RRDTool binary.
# Default: /usr/bin/rrdtool
rrdtool_bin_path=/usr/bin/rrdtool
# Path and name of the FBI imageviewer binary.
# Default: /usr/bin/fbi
fbi_bin_path=/usr/bin/fbi
# Path and name of the index file holding current photo markups.
# Default: index
photo_index_file=index
# Path and name of the list file holding whole photo collection.
# Default: list
photo_list_file=list
# Path and name of the PID file holding current running script PID.
# Default: pid
pid_file=pid
# Path and name of the interval multiplication file holding current photo time.
# Default: time
interval_mult_file=time
[Display]
# Type of the display connected: SPI or HDMI/Composite.
# It's affecting other options specific for the display type.
# Possible values: SPI, HDMI.
# Default: SPI
display_type=SPI
# Type of the e-paper display.
# Possible values: Waveshare, Pimoroni.
# Default: Waveshare
epaper_type=Waveshare
# Color palette of e-paper display.
# This determines what kind of conversion will be used for the image.
# Other means no conversion and it will rely on the driver to adjust the photo.
# Possible values: BW (black&white), BW+Yellow, BW+Red, 4 colors, 7 colors, Other.
# Default: BW
epaper_color=BW
# Used for e-Paper SPI displays!
# Name of the display class from Waveshare or Pimoroni Inky python codes.
# Default: epd7in5_V2
display=epd7in5_V2
# Clear display before refresh.
# Use in case of ghosting. The frame update will take longer when enabled.
# Default: 0 (disabled)
clear_display=0
# Number of terminal (virtual console) used for HDMI/Composite display.
# This option wrongly set may hang or corrupt terminals.
# The default set will work on X and non-X environments.
# Default: 1
tty=1
# Photo frame refresh slide interval in seconds.
; Waveshare producer says it's best to wait min 180s between
; refreshing the display, so keep this value >= 180
; Average photo preparation time (download + processing) may take up
; to 3 minutes on RasPi Zero so keep in mind that it will take
; some time on reboot.
# Default: 600 (10 minutes)
slide_interval=600
# Allow slide_interval multiplication.
# When in photo description there is interval_mult_hotword and value,
# e.g. <hotword> <multiplication>
# i.e. Frame 3
# this photo will be displayed slide_interval * multiplication longer.
; Users should manually add this DESCRIPTION per photo.
# Default:1 (option is enabled)
interval_mult=1
# Hot-word to find in photo descriptions for the interval multiplication.
; Option interval_mult will not work without this.
; Don't leave it empty as someone can put for example
; year the photo was taken in it's description and it will
; mess it.
# Default:Frame
interval_mult_hotword=Frame
# Maximum interval multiplication for interval_mult.
; Option interval_mult will not work without this.
# Every value above will be set to interval_max_mult value.
# E.g. <hotword> 10 when interval_max_mult=5 will result in slide_interval * 5.
; That is to prevent users from putting some
; crazy values and photo will stay on the display forever.
# Default:6
interval_max_mult=6
# Starting time for every day of the week of photo frame to start changing photos.
# Starting with Monday and Sunday is last.
; That will save power and will not update
; photo frame when it's not seen, e.g. at night.
; The values should be between 0:00 and 23:59.
; To change the format see modules/timermanager.py
# Put - when frame should not work that day at all.
# Default: 5:30,5:30,5:30,5:30,5:30,5:30,5:30 (start updating every day at 5:30 in the morning)
start_times=5:30,5:30,5:30,5:30,5:30,5:30,5:30
# Ending time for every day of the week of photo frame to stop changing photos.
# Starting with Monday and Sunday is last.
; That will save power and will not update
; photo frame when it's not seen, e.g. at night.
; The values should be between 0:00 and 23:59.
; To change the format see modules/timermanager.py
; Put - when frame should not stop updating that day and will
; work until start_times - or stop_times next days.
; - here when - same day in start_times will not update frame.
# Put - everywhere to let frame work all the time.
# Default: 23:30,23:30,23:30,23:30,23:30,23:30,23:30(stop updating every day at 23:30 in the evening
stop_times=23:30,23:30,23:30,23:30,23:30,23:30,23:30
# This will allow to control power of HDMI (only) display.
# Enabling will power off the display during stop times and power on display during start times.
# Default:1 (Enable power control).
control_display_power=1
# This will allow to trigger (from web, bots, etc.) photo change or update
# during off hours. Disabling will respect sleep time and supress triggers.
# Default:1 (Enable triggers).
allow_triggers=1
[Image]
# Convert before displaying.
# If disabled, then You must have your photos pre-converted via the ePiframe command line!
# Command line actions will always work.
# Default: 1
convert=1
# Used for e-Paper SPI _black&white_ displays!
# There are 6 standard types of conversion to black&white image (add more in
# convertmanager module). Every option gives slightly different
# results and you can pick the one best for your display. Types are:
# 1 - Floyd-Steinberg dither
# 2 - Floyd-Steinberg dither + high remap
# 3 - GIMP like result
# 4 - Floyd-Steinberg ordered dither
# 5 - direct conversion to black&white
# 6 - simple conversion to black&white + basic dither
; To add more see modules/convertmanager.py
# Default: 1
convert_option=1
# Width of the display. Default: 800 for the Waveshare 7.5inch paper display 800x480 V2
image_width=800
# Height of the display. Default: 480 for the Waveshare 7.5inch paper display 800x480 V2
image_height=480
# Convert photo to grayscale, used for HDMI/Composite displays.
# 1 for grayscale photo. Default: 0 (colorful)
grayscale=0
# Colors number limit used for HDMI/Composite displays with limited palette.
# Empty for no change and > 0 for specifying colors number.
# Can be combined with grayscale option.
# Default: empty
colors_num=
# Invert colors - white will be black and black will be white.
; It can look interesting in frames with dark passe-partout frame.
# 1 for negative photo. Default: 0 (normal)
invert_colors=0
# When image is smaller than the display
# underlay will be added. Options: white, black, crop or photo.
; crop will resize and then crop to the display size from the center.
; photo will put blurred original photo underneath - takes more time to process.
# Default:white
background_color=white
# Determines if photo EXIF orientation
# should be respected: digital cameras use orientation sensors to store
# a value for how the camera is held.
# This option makes processing time a bit longer.
# Default 0 (do not rotate according to EXIF orientation value)
auto_orientation=0
# Frame position - horizontal or vertical.
# Default:1 (horizontal)
horizontal=1
# Indicates if photo should be turned upside-down for horizontal frame position.
# Default:0 (normal)
turned=0
# Frame rotation in vertical position.
# Values: 90 (right) or 270 (left) degrees.
# Default: 90
rotation=90
# One of the image enhancements.
# Calculates the mean values of an image, then applies a calculated -gamma adjustment.
# Default:0 (disabled)
auto_gamma=0
# One of the image enhancements.
# It finds the exact minimum and maximum color values in the image
# and then stretches the values to the full range of values.
# Default:0 (disabled)
auto_level=0
# One of the image enhancements.
# Increases the contrast in an image by stretching the range of intensity values.
# Default:0 (disabled)
normalize=0
# One of the image enhancements.
# Adjusts the photo brightness.
# Value from -100(less) to 100(more) in % units.
# Default:0 (no change)
brightness=0
# One of the image enhancements.
# Adjusts the photo contrast.
# Value from -100(less) to 100(more) in % units.
# Default:10 (+10% more)
contrast=10
# Pimoroni Impressions e-paper displays saturation factor.
# Possible values 0.0 - 0.99 float
# Default:0.8
pimoroni_saturation=0.8
[Filtering]
# Show random photos.
; Photos will be showed randomly once per
; whole collection turn, list will be updated on every run.
; With this option on asc/desc sort has no power.
# Default=0 (no randomization, show in creation time order)
randomize=0
; All filtering options can be used in the same time (not only separately)
; to narrow number of photos
# Starting creation date and time for photos filtering (everything after)
# In format YYYY-MM-DD hh:mm:ss (e.g. 2020-05-01 10:01:17).
; To change the format see modules/filteringmanager.py
# Empty means no low limit. Default: empty
photos_from=
# Ending creation date and time for photos filtering (everything before)
# in format YYYY-MM-DD hh:mm:ss (e.g. 2020-05-01 10:01:17).
; To change the format see modules/filteringmanager.py
# Empty means no high limit. Default: empty
photos_to=
# Number of photos to show. Only n first photos from the albums (and filtered if set) will be shown. Empty means no limit.
; This will work only with randomize option disabled
# Default: empty
no_photos=
# Sort photos by creation date and time.
; This will work only with randomize option disabled
# Options: none (no sorting), asc (ascending), desc (descending)
# Default: none (no sorting)
sorting=none
[Weather]
# Set 1 to show weather (icon and temperature) on the displayed photo.
; The rest of the values in this section should be filled as well when enabled.
# Default: 0 (do not show)
show_weather=0
# API key for the weather data.
; Get it for free on https://openweathermap.org
# Default: empty
apikey=
# Latitude of weather location.
; Get it here: https://www.maps.ie/coordinates.html
# Example: 53.2734
# Default: empty
lat=
# Longitude of weather location.
; Get it here: https://www.maps.ie/coordinates.html
# Example: 7.7783
# Default: empty
lon=
# Weather information position.
; One of the values: 0, 1, 2, 3
; 0 is for left-top corner
; 1 is for right-top corner
; 2 is for left-bottom corner
; 3 is for right-bottom corner
# Default: 0 (left-top corner)
position=0
# Weather information font size.
# Default: 20
font=20
# Weather information font color.
# One of the values: white, black.
; Font stroke will be always in opposite color
# Default: white
font_color=white
[Telegram bot]
; Please restart service after changing any of values in this section
; as bot thread is persistent per token and to not interfere threads
; it's better to re-run it
# Set 1 to use Telegram bot to control frame from Telegram IM.
; The rest of the values in this section should be filled as well when enabled.
# Default: 0 (disabled)
use_telebot=0
# Telegram bot API token.
; Taken from BotFather Telegram Bot after creating new bot
# Example: 1234567890:ABCDEFGAHIJKLMNabcdefghijklmn012345.
# Default: empty
token=
# Chat ids to talk with.
; Set the chat ids (take them from Telegram API) to narrow the chats that can control Telegram bot
; Multiple allowed - comma separated
# Example: 123456789,-987654321.
# Default: empty (everyone can control bot)
chat_id=
[Web interface]
; Please restart service after changing any of values in this section
; as webUI thread is persistent per port and host and to not interfere threads
; it's better to re-run it
# Set 1 to use WebUI to control frame from the website.
; The rest of the values in this section should be filled as well when enabled.
# Default: 0 (disabled)
use_web=0
# ePiframe WebUI host.
# Example: 127.0.0.1 (local only).
# 0.0.0.0 for (all) public IP address.
# Default: 0.0.0.0
web_host=0.0.0.0
# ePiframe WebUI port.
# SOMETIMES YOU NEED TO OPEN IT IN YOUR FIREWALL SETTINGS!
# Ports below 5000 need root privileges.
# Value in 1-65535 range.
# Default: 80
web_port=80
# Set 1 to show and gather statistics (load, temp, mem) in
# WebUI. It should not be noticed in device performance,
# but disable if worried.
# Default: 1 (enabled)
show_stats=1
# Set 1 to load UI dark theme.
# Default: 0 (disabled = light theme)
dark_theme=0