-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (23 loc) · 765 Bytes
/
config.py
File metadata and controls
30 lines (23 loc) · 765 Bytes
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
'''
config.py
---
Change the variables in ALL_CAPS below to customize your own PyPortal programs.
'''
# Current directory (DO NOT CHANGE)
_portaldir = ("/" + __file__).rsplit('/', 1)[0] + "/"
# Background image used at startup:
BG_IMAGE = _portaldir + 'thankyou.bmp'
# Font in BDF format:
FONT = _portaldir + 'fonts/Arial-ItalicMT-17.bdf'
# JSON data source URL:
DATA_SOURCE = "https://www.adafruit.com/api/quotes.php"
# JSON location of the quote and author:
QUOTE_LOCATION = [0, 'text']
AUTHOR_LOCATION = [0, 'author']
# Change text attributes on the screen:
TEXT_POSITION = ((20, 40), (100, 190))
TEXT_COLORS = (0xFFFFFF, 0x8080FF)
TEXT_WRAP = (35, 0)
TEXT_MAX_LENGTH = (170, 30)
# Run in DEBUG mode. True in development, False for releases:
DEBUG = True