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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
|
#muuid {6b612a34-dcf2-4e32-85cf-b6fd006b745e}
;============================================================
; File: Weather.dll
; Plugin: Weather
; Version: 0.4.0.1
; Authors: Miranda NG Team
;============================================================
[Retrieves weather information and displays it in your contact list.]
;file \plugins\Weather\res\resource.rc
[Update]
[Brief Info]
[Webpage]
[Close]
[Options]
[Update weather information on startup]
[Update weather information every]
[minutes]
[Consider weather info updated only when condition and temperature are changed]
[Remove old data when updating]
[Make the contact italic when weather alert is issued]
[Modes]
[Use weather condition as protocol status]
[Avatar only mode]
[Units]
[Temperature]
[Celsius]
[Fahrenheit]
[Degree sign:]
[Wind]
[km/h]
[m/s]
[mph]
[knots]
[Visibility]
[km]
[miles]
[Pressure]
[kPa]
[mb (hPa)]
[inches]
[mm Hg (torr)]
[Day/Month]
[No change]
[2 chars]
[3 chars]
[Elevation]
[ft]
[m]
[Do not append units to values]
[Do not display fractional values]
[Frame]
[Avatar size]
[Edit Weather Station]
[Weather Station]
[City name]
[ID]
[Log Information]
[Use internal history]
[Use external file]
[Overwrite file upon update]
[Path:]
[6]
[Link Settings]
[More Info URL]
[Weather Map]
[Other Options]
[Set as default station]
[Disable automatic update for this station]
[Disable PopUp for this station]
[Change]
[Cancel]
[PopUp Options]
[Enable popups]
[Popup only when condition changes]
[Colours]
[Background colour]
[Text colour]
[Use Windows colours]
[Popup Actions]
[Left Click]
[Right Click]
[Popup Delay]
[Delay]
[seconds]
[From PopUp plugin]
[Permanent]
[Popup Text]
[Popup Title]
[Variables]
[Default]
[Preview]
[Updates]
[Alerts]
[Errors]
[Contact List]
[Brief Info Title]
[Note Text]
[Extra Text]
[External Log]
[History Log]
[Variable List]
[More Variables]
[Reset]
[Status Message]
[Sunset]
[Feel-like]
[Today's Low]
[Today's High]
[Sunrise]
[Dewpoint]
[Humidity]
[More...]
[Weather Protocol INI Setup]
[Weather Protocol INI Setup\nInstall and load your weather ini file here]
[Weather Protocol cannot find any weather INI file stored in your computer. To setup weather INI and add weather stations, please follow the steps:]
[Click here to download a weather ini file from Miranda file listing]
[Extract the weather ini file from archive to this directory]
[Click here to load the data from the new ini file into memory]
[Add new weather station and close this dialog]
[Total INI files]
[Total memory used]
[Reload INI]
[City:]
[Menu]
[Dismiss PopUp]
[Open brief information]
[Open complete forecast]
[Open weather map]
[View history]
[Open log file]
[Show user menu]
[Show user detail]
[To old setting]
[To default]
;file \plugins\Weather\src\weather.cpp
[Enable/disable auto update]
[Auto Update Enabled]
[Auto Update Disabled]
[Weather Condition Changed]
[Weather Alert Issued]
[%s__PopupWindow]
[static]
;file \plugins\Weather\src\weather.h
[N/A]
[Invalid ID format, missing "/" (10)]
[Invalid service (11)]
[Invalid station (12)]
[Weather service ini for this station is not found (20)]
[Netlib error - check your internet connection (30)]
[Empty data is retrieved (40)]
[Document not found (42)]
[Document too short to contain any weather data (43)]
[Unknown error (99)]
[HTTP Error: No content (204)]
[HTTP Error: Data moved (301)]
[HTTP Error: Use proxy (305)]
[HTTP Error: Temporary redirect (307)]
[HTTP Error: Bad request (400)]
[HTTP Error: Unauthorized (401)]
[HTTP Error: Payment required (402)]
[HTTP Error: Forbidden (403)]
[HTTP Error: Not found (404)]
[HTTP Error: Method not allowed (405)]
[HTTP Error: Proxy authentication required (407)]
[HTTP Error: Gone (410)]
[HTTP Error: Internal server error (500)]
[HTTP Error: Bad gateway (502)]
[HTTP Error: Service unavailable (503)]
[HTTP Error: Gateway timeout (504)]
[%c\nTemperature: %t\nFeel-Like: %f\nPressure: %p\nWind: %i %w\nHumidity: %m\nDew Point: %e\nVisibility: %v\n\nSun Rise: %r\nSun Set: %y\n\n5 Days Forecast:\n%[Forecast Day 1]\n%[Forecast Day 2]\n%[Forecast Day 3]\n%[Forecast Day 4]\n%[Forecast Day 5]]
[Feel-Like: %f\nPressure: %p\nWind: %i %w\nHumidity: %m\nDew Point: %e\nVisibility: %v\n\nSun Rise: %r\nSun Set: %y\n\n5 Days Forecast:\n%[Forecast Day 1]\n%[Forecast Day 2]\n%[Forecast Day 3]\n%[Forecast Day 4]\n%[Forecast Day 5]]
[Weather Condition for %n as of %u]
[%c, %t (feel-like %f) Wind: %i %w Humidity: %m]
[%n at %u: %c, %t (feel-like %f) Wind: %i %w Humidity: %m]
[%c, %t\nToday: High %h, Low %l]
[Temperature: %[Temperature]]
;file \plugins\Weather\src\weather_addstn.cpp
[Current weather information for %s.]
[%s is now the default weather station]
[Weather Protocol]
[Please try again after weather update is completed.]
[<Enter station name here>]
[<Enter station ID here>]
[NAME]
;file \plugins\Weather\src\weather_contacts.cpp
[open]
[Weather condition was not logged.]
[The URL for complete forcast have not been set. You can set it from the Edit Settings dialog.]
[The URL for weather map have not been set. You can set it from the Edit Settings dialog.]
[Get city name from ID]
[Weather INI information]
[Browse]
[View webpage]
[Reset to default]
[Text Files]
[All Files]
;file \plugins\Weather\src\weather_conv.cpp
[KPA]
[HPA]
[TORR]
["\r\nvoid GetSpeed(TCHAR *tempchar, TCHAR *unit, TCHAR *str) \r\n{\r\n // unit can be km/h, mph, m/s, knots\r\n double tempunit;\r\n TCHAR tstr[20];\r\n\r\n str[0] = 0;\r\n\r\n // convert the string into an integer (always positive)\r\n // if the result is 0, then the string is not a number, return _T(""\r\n tempunit = _ttof(tempchar);\r\n if (tempunit == 0 && tempchar[0] != '0')\r\n return;\r\n\r\n // convert all to m/s first\r\n if ( !_tcsicmp(unit, _T("KM/H]
[M/S]
[MPH]
[KNOTS]
[MILES]
[Lightning]
[Fog]
[Snow Shower]
[Snow]
[Rain Shower]
[Rain]
[Partly Cloudy]
[Cloudy]
[Sunny]
[mainy sunny]
[mainy clear]
[partly cloudy]
[mostly]
[clouds]
[sunny]
[clear]
[fair]
[thunder]
[t-storm]
[cloud]
[overcast]
[fog]
[mist]
[smoke]
[sand]
[dust]
[haze]
[shower]
[snow]
[flurries]
[rain shower]
[ice]
[freezing]
[wintry]
[drizzle]
[rain]
[%20"\r\n// dis = original string\r\n// return value = the modified string with space -> _T("%20"\r\nchar *GetSearchStr(char *dis) \r\n{\r\n char *pstr = dis;\r\n size_t len = strlen(dis);\r\n while (*pstr != 0)\r\n {\r\n if (*pstr == ' ')\r\n {\r\n memmove(pstr+3, pstr+1, len);\r\n memcpy(pstr, _T("%20]
[<unknown time>]
[<Error>]
[HTTP Error %i]
;file \plugins\Weather\src\weather_data.cpp
[<Enter city name here>]
[High]
[Low]
[Feel]
[Wind Speed]
[KM/H]
[COND]
[DEG]
[DAY]
[MONTH]
[Ignore]
[Error when obtaining data: %s]
;file \plugins\Weather\src\weather_http.cpp
[Error occured! HTTP Error: %i\n]
[NetLib error occurred!!]
[Weather HTTP connections]
;file \plugins\Weather\src\weather_icons.cpp
[Protocol icon]
[Update Disabled]
[View Log]
[Update with Clear]
[View Brief]
[View Complete]
[Weather Update]
[Popup]
[No Popup]
[Edit Settings]
;file \plugins\Weather\src\weather_info.cpp
[Name]
[Author]
[File Version]
[INI Version]
[Items]
[Display Name]
[File Name]
[The corresponding INI file for "%s" is not found.]
[Weather INI information for "%s":]
[Name:]
[Internal Name:]
[Author:]
[Version:]
[INI Version:]
[File Name:]
[Item Count:]
[Memory Used:]
[bytes]
[Description:]
[Here is a list of custom variables that are currently available]
;file \plugins\Weather\src\weather_ini.cpp
[ID Search - Station Name]
[No update data file is found. Please check your Plugins\\Weather directory.]
[Invalid ini format for: %s]
[Name Search Single Result - Station Name]
[Name Search Single Result - Station ID]
[Name Search Multiple Result - Station Name]
[Name Search Multiple Result - Station ID]
[\\Plugins\\weather\\]
[All update data has been reloaded.]
;file \plugins\Weather\src\weather_mwin.cpp
[Frame Font]
[Frame Title Font]
[Weather: %s]
[WeatherFrame]
[Frame Background]
[Verdana]
;file \plugins\Weather\src\weather_opt.cpp
[Network]
[General]
[Display]
[PopUps]
[%c\tcurrent condition\n%d\tcurrent date\n%e\tdewpoint\n%f\tfeel-like temp\n%h\ttoday's high\n%i\twind direction\n%l\ttoday's low\n%m\thumidity\n%n\tstation name\n%p\tpressure\n%r\tsunrise time\n%s\tstation ID\n%t\ttemperature\n%u\tupdate time\n%v\tvisibility\n%w\twind speed\n%y\tsun set]
[Weather Protocol Text Preview]
;file \plugins\Weather\src\weather_popup.cpp
[This is the name of the city]
[Here is a short weather description]
[%c\tcurrent condition\n%d\tcurrent date\n%e\tdewpoint\n%f\tfeel-like temperature\n%h\ttoday's high\n%i\twind direction\n%l\ttoday's low\n%m\thumidity\n%n\tstation name\n%p\tpressure\n%r\tsunrise time\n%s\tstation ID\n%t\ttemperature\n%u\tupdate time\n%v\tvisibility\n%w\twind speed\n%y\tsun set]
[%[..]\tcustom variables]
;file \plugins\Weather\src\weather_svcs.cpp
[Station ID]
[Light]
[SShower]
[RShower]
[PCloudy]
[Disable &weather notification]
[Enable &weather notification]
[Update Weather]
[Remove Old Data then Update]
[Brief Information]
[Read Complete Forecast]
[Weather]
[Enable/Disable Weather Update]
[Update All Weather]
[Remove Old Data then Update All]
[Weather Notification]
[Display in a frame]
;file \plugins\Weather\src\weather_update.cpp
[<-- Start update for station -->]
[Unable to retrieve weather information for %s]
[Error! Update cannot continue... Start to free memory]
[<-- Error occurs while updating station: %s -->]
[Alert for %s%c%s]
[Update Completed - Start to free memory]
[<-- Update successful for station -->]
[Document Not Found]
[Condition]
[Cond]
[Alert]
;file \plugins\Weather\src\weather_userinfo.cpp
[Current condition for %n]
[Last update on: %u]
[Variable]
[Information]
[Retrieving new data, please wait...]
[More Info]
[No information available.\r\nPlease update weather condition first.]
|