-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py
60 lines (54 loc) · 2.4 KB
/
const.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
DOMAIN = "hko"
DISTRICT = "name"
COORDINATOR = "coordinator"
UPDATE_LISTENER = "update_listener"
CONF_LOCATION = "location"
KEY_LOCATION = "LOCATION"
KEY_DISTRICT = "DISTRICT"
DEFAULT_LOCATION = "Hong Kong Observatory"
DEFAULT_DISTRICT = "Yau Tsim Mong"
LOCATIONS = [
{"LOCATION": "Hong Kong Observatory", "DISTRICT": "Yau Tsim Mong"},
{"LOCATION": "King's Park", "DISTRICT": "Yau Tsim Mong"},
{"LOCATION": "Wong Chuk Hang", "DISTRICT": "Southern District"},
{"LOCATION": "Ta Kwu Ling", "DISTRICT": "North District"},
{"LOCATION": "Lau Fau Shan", "DISTRICT": "Yuen Long"},
{"LOCATION": "Tai Po", "DISTRICT": "Tai Po"},
{"LOCATION": "Sha Tin", "DISTRICT": "Sha Tin"},
{"LOCATION": "Tuen Mun", "DISTRICT": "Tuen Mun"},
{"LOCATION": "Tseung Kwan O", "DISTRICT": "Sai Kung"},
{"LOCATION": "Sai Kung", "DISTRICT": "Sai Kung"},
{"LOCATION": "Cheung Chau", "DISTRICT": "Southern District"},
{"LOCATION": "Chek Lap Kok", "DISTRICT": "Tuen Mun"},
{"LOCATION": "Tsing Yi", "DISTRICT": "Kwai Tsing"},
{"LOCATION": "Shek Kong", "DISTRICT": "Yuen Long"},
{"LOCATION": "Tsuen Wan Ho Koon", "DISTRICT": "Tsuen Wan"},
{"LOCATION": "Tsuen Wan Shing Mun Valley", "DISTRICT": "Tsuen Wan"},
{"LOCATION": "Hong Kong Park", "DISTRICT": "Central & Western District"},
{"LOCATION": "Shau Kei Wan", "DISTRICT": "Eastern District"},
{"LOCATION": "Kowloon City", "DISTRICT": "Kowloon City"},
{"LOCATION": "Happy Valley", "DISTRICT": "Wan Chai"},
{"LOCATION": "Wong Tai Sin", "DISTRICT": "Wong Tai Sin"},
{"LOCATION": "Stanley", "DISTRICT": "Southern District"},
{"LOCATION": "Kwun Tong", "DISTRICT": "Kwun Tong"},
{"LOCATION": "Sham Shui Po", "DISTRICT": "Sham Shui Po"},
{"LOCATION": "Kai Tak Runway Park", "DISTRICT": "Kowloon City"},
{"LOCATION": "Yuen Long Park", "DISTRICT": "Yuen Long"},
{"LOCATION": "Tai Mei Tuk", "DISTRICT": "Tai Po"},
]
MANUFACTURER = "Hong Kong Observatory"
ATTRIBUTION = "Data provided by Hong Kong Observatory"
API_CURRENT = "current"
API_FORECAST = "forecast"
API_WEATHER_FORECAST = "weatherForecast"
API_FORECAST_DATE = "forecastDate"
API_FORECAST_ICON = "ForecastIcon"
API_FORECAST_WEATHER = "forecastWeather"
API_FORECAST_MAX_TEMP = "forecastMaxtemp"
API_FORECAST_MIN_TEMP = "forecastMintemp"
API_CONDITION = "condition"
API_TEMPERATURE = "temperature"
API_HUMIDITY = "humidity"
API_PLACE = "place"
API_DATA = "data"
API_VALUE = "value"