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