openweathermap search works now

pull/1/head
Simon Stürz 2014-04-13 23:00:45 +02:00
parent 8024b46c27
commit 2d84223ad6
1 changed files with 2 additions and 3 deletions

View File

@ -171,7 +171,7 @@ QList<DeviceClass> DevicePluginOpenweathermap::supportedDevices() const
DeviceClass deviceClassOpenweathermap(pluginId(), openweathermapVendorId, DeviceClassId("985195aa-17ad-4530-88a4-cdd753d747d7")); DeviceClass deviceClassOpenweathermap(pluginId(), openweathermapVendorId, DeviceClassId("985195aa-17ad-4530-88a4-cdd753d747d7"));
deviceClassOpenweathermap.setName("Weather from openweathermap"); deviceClassOpenweathermap.setName("Weather from openweathermap");
//deviceClassOpenweathermap.setCreateMethod(DeviceClass::CreateMethodDiscovery); deviceClassOpenweathermap.setCreateMethod(DeviceClass::CreateMethodDiscovery);
// Params // Params
QVariantList params; QVariantList params;
@ -292,7 +292,7 @@ QList<DeviceClass> DevicePluginOpenweathermap::supportedDevices() const
DeviceManager::DeviceError DevicePluginOpenweathermap::discoverDevices(const DeviceClassId &deviceClassId, const QVariantMap &params) const DeviceManager::DeviceError DevicePluginOpenweathermap::discoverDevices(const DeviceClassId &deviceClassId, const QVariantMap &params) const
{ {
qDebug() << "should discover divces for" << deviceClassId << params; qDebug() << "should discover divces for" << deviceClassId << params;
// m_openweaher-> m_openweaher->search(params.value("location").toString());
return DeviceManager::DeviceErrorNoError; return DeviceManager::DeviceErrorNoError;
} }
@ -313,7 +313,6 @@ PluginId DevicePluginOpenweathermap::pluginId() const
void DevicePluginOpenweathermap::guhTimer() void DevicePluginOpenweathermap::guhTimer()
{ {
m_openweaher->search("Vie");
} }