-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
61 lines (43 loc) · 1.35 KB
/
config.py
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
"""
Michael duPont - michael@mdupont.com
config.py - Shared METAR display settings
"""
import json
import logging
from os import path
from pathlib import Path
# Seconds between server pings
update_interval = 600
# Seconds between connection retries
timeout_interval = 60
# Set log level - CRITICAL, ERROR, WARNING, INFO, DEBUG
log_level = logging.DEBUG
# Send METAR Pi logs to a file. Ex: "output.log"
log_file = None
# Set to True to shutdown the Pi when exiting the program
shutdown_on_exit = False
# ------- Plate Settings ------- #
# Seconds between plate button reads
button_interval = 0.2
# Seconds between row 2 char scroll
scroll_interval = 0.2
# Remarks section in scroll line
include_remarks = False
# ------- Screen Settings ------ #
# Size of the screen. Loads the layout from "./screen_settings"
layout = "320x240"
LOC = Path(path.abspath(path.dirname(__file__)))
layout = LOC / "screen_settings" / f"{layout}.json"
layout = json.load(layout.open())
# Run the program fullscreen or windowed
fullscreen = True
# Hide the mouse on a touchscreen
hide_mouse = True
# Clock displays UTC or local time
clock_utc = True
# Clock strftime format string
clock_format = r"%H:%M" # 24-hour
# clock_format = r"%#I:%M" # 12-hour
# Report timestamp strftime format string
timestamp_format = r"%d-%H:%M" # 24-hour
# timestamp_format = r"%d-%#I:%M" # 12-hour