9 |
using namespace Util; |
using namespace Util; |
10 |
|
|
11 |
WeatherPlugin::WeatherPlugin() |
WeatherPlugin::WeatherPlugin() |
12 |
: Plugin("vejr", "Find danish weather report on dmi.dk") |
: Plugin("vejr", "Find danish weather report on dmi.dk") |
13 |
{ |
{ |
14 |
} |
} |
15 |
|
|
19 |
try |
try |
20 |
{ |
{ |
21 |
doc = HttpClient::GetString("http://www.dmi.dk/dmi/danmark.htm"); |
doc = HttpClient::GetString("http://www.dmi.dk/dmi/danmark.htm"); |
22 |
} catch (httpexception&e ) { |
} |
23 |
|
catch (httpexception&e ) |
24 |
|
{ |
25 |
modem.SendSms(sms.GetSender(), "could not retrieve data", true); |
modem.SendSms(sms.GetSender(), "could not retrieve data", true); |
26 |
return; |
return; |
27 |
} |
} |