-
Notifications
You must be signed in to change notification settings - Fork 308
/
helpers.ts
146 lines (146 loc) · 4.64 KB
/
helpers.ts
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
export const testCurrentConditions = {
LocalObservationDateTime: '2021-10-22T01:30:00+07:00',
EpochTime: 1634841000,
WeatherText: 'Thunderstorm',
WeatherIcon: 15,
HasPrecipitation: true,
PrecipitationType: 'Rain',
IsDayTime: false,
Temperature: {
Metric: { Value: 25.9, Unit: 'C', UnitType: 17 },
Imperial: { Value: 79, Unit: 'F', UnitType: 18 },
},
RealFeelTemperature: {
Metric: { Value: 27.9, Unit: 'C', UnitType: 17 },
Imperial: { Value: 82, Unit: 'F', UnitType: 18 },
},
RealFeelTemperatureShade: {
Metric: { Value: 27.9, Unit: 'C', UnitType: 17 },
Imperial: { Value: 82, Unit: 'F', UnitType: 18 },
},
RelativeHumidity: 83,
IndoorRelativeHumidity: 83,
DewPoint: {
Metric: { Value: 22.8, Unit: 'C', UnitType: 17 },
Imperial: { Value: 73, Unit: 'F', UnitType: 18 },
},
Wind: {
Direction: { Degrees: 293, Localized: 'WNW', English: 'WNW' },
Speed: {
Metric: { Value: 6.6, Unit: 'km/h', UnitType: 7 },
Imperial: { Value: 4.1, Unit: 'mi/h', UnitType: 9 },
},
},
WindGust: {
Speed: {
Metric: { Value: 9.2, Unit: 'km/h', UnitType: 7 },
Imperial: { Value: 5.7, Unit: 'mi/h', UnitType: 9 },
},
},
UVIndex: 0,
UVIndexText: 'Low',
Visibility: {
Metric: { Value: 8, Unit: 'km', UnitType: 6 },
Imperial: { Value: 5, Unit: 'mi', UnitType: 2 },
},
ObstructionsToVisibility: '',
CloudCover: 98,
Ceiling: {
Metric: { Value: 549, Unit: 'm', UnitType: 5 },
Imperial: { Value: 1800, Unit: 'ft', UnitType: 0 },
},
Pressure: {
Metric: { Value: 1010.2, Unit: 'mb', UnitType: 14 },
Imperial: { Value: 29.83, Unit: 'inHg', UnitType: 12 },
},
PressureTendency: { LocalizedText: 'Rising', Code: 'R' },
Past24HourTemperatureDeparture: {
Metric: { Value: 2.8, Unit: 'C', UnitType: 17 },
Imperial: { Value: 5, Unit: 'F', UnitType: 18 },
},
ApparentTemperature: {
Metric: { Value: 28.3, Unit: 'C', UnitType: 17 },
Imperial: { Value: 83, Unit: 'F', UnitType: 18 },
},
WindChillTemperature: {
Metric: { Value: 26.1, Unit: 'C', UnitType: 17 },
Imperial: { Value: 79, Unit: 'F', UnitType: 18 },
},
WetBulbTemperature: {
Metric: { Value: 23.8, Unit: 'C', UnitType: 17 },
Imperial: { Value: 75, Unit: 'F', UnitType: 18 },
},
Precip1hr: {
Metric: { Value: 1.5, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.06, Unit: 'in', UnitType: 1 },
},
PrecipitationSummary: {
Precipitation: {
Metric: { Value: 1.5, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.06, Unit: 'in', UnitType: 1 },
},
PastHour: {
Metric: { Value: 1.5, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.06, Unit: 'in', UnitType: 1 },
},
Past3Hours: {
Metric: { Value: 6.4, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.25, Unit: 'in', UnitType: 1 },
},
Past6Hours: {
Metric: { Value: 6.4, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.25, Unit: 'in', UnitType: 1 },
},
Past9Hours: {
Metric: { Value: 6.4, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.25, Unit: 'in', UnitType: 1 },
},
Past12Hours: {
Metric: { Value: 6.4, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.25, Unit: 'in', UnitType: 1 },
},
Past18Hours: {
Metric: { Value: 6.4, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.25, Unit: 'in', UnitType: 1 },
},
Past24Hours: {
Metric: { Value: 8, Unit: 'mm', UnitType: 3 },
Imperial: { Value: 0.32, Unit: 'in', UnitType: 1 },
},
},
TemperatureSummary: {
Past6HourRange: {
Minimum: {
Metric: { Value: 25.9, Unit: 'C', UnitType: 17 },
Imperial: { Value: 79, Unit: 'F', UnitType: 18 },
},
Maximum: {
Metric: { Value: 29.5, Unit: 'C', UnitType: 17 },
Imperial: { Value: 85, Unit: 'F', UnitType: 18 },
},
},
Past12HourRange: {
Minimum: {
Metric: { Value: 25.9, Unit: 'C', UnitType: 17 },
Imperial: { Value: 79, Unit: 'F', UnitType: 18 },
},
Maximum: {
Metric: { Value: 34.1, Unit: 'C', UnitType: 17 },
Imperial: { Value: 93, Unit: 'F', UnitType: 18 },
},
},
Past24HourRange: {
Minimum: {
Metric: { Value: 21.1, Unit: 'C', UnitType: 17 },
Imperial: { Value: 70, Unit: 'F', UnitType: 18 },
},
Maximum: {
Metric: { Value: 34.1, Unit: 'C', UnitType: 17 },
Imperial: { Value: 93, Unit: 'F', UnitType: 18 },
},
},
},
MobileLink:
'http://www.accuweather.com/en/id/sungai-daun/677977/current-weather/677977?lang=en-us',
Link: 'http://www.accuweather.com/en/id/sungai-daun/677977/current-weather/677977?lang=en-us',
}