-
Notifications
You must be signed in to change notification settings - Fork 1
/
Constants.py
39 lines (35 loc) · 952 Bytes
/
Constants.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
import os
from pyowm import OWM
from geopy.geocoders import Nominatim
ZONE_FONT_SIZE = 26
TEMPERATURE_FONT_SIZE = 16
TIME_FONT_SIZE = 58
LONG_DATE_FONT_SIZE = 16
SHORT_DATE_FONT_SIZE = 14
ICON_SIZE = 64
GEO_LOCATOR = Nominatim(user_agent="geoapiExercises")
API_INSTANCE = OWM(os.environ["WEATHER_API"]).weather_manager()
TIME_FORMAT = "%H:%M:%S"
LONG_DATE_FORMAT = "%A %d %B %Y"
SHORT_DATE_FORMAT = "%d/%m/%y"
WEATHER_UPDATE_INTERVAL = 600
DEFAULT_DATA_VALUE = ""
ZONE_CODE_FORMAT = "%Z"
ESCAPE_KEY = 16777216
DEFAULT_SETTINGS = [
{
"top_row": [
"Los Angeles, US",
"Philadelphia, US"
],
"centre_row":[],
"bottom_row":[
"Paris, FR",
"Calne, GB",
"Pune, IN"
],
"card_colour": "#272727",
"background_colour": "#212121",
"foreground_colour": "#DFDFDF"
}
]