Merge PR #442: WakeOnLan: Add network device discovery

This commit is contained in:
Jenkins nymea 2021-07-01 17:07:19 +02:00
commit df2e16aeb4
12 changed files with 170 additions and 49 deletions

View File

@ -33,6 +33,8 @@
#include "integrations/thing.h"
#include "plugininfo.h"
#include "network/networkdevicediscovery.h"
#include <QDebug>
#include <QStringList>
#include <QUdpSocket>
@ -41,6 +43,51 @@ IntegrationPluginWakeOnLan::IntegrationPluginWakeOnLan()
{
}
void IntegrationPluginWakeOnLan::discoverThings(ThingDiscoveryInfo *info)
{
if (!hardwareManager()->networkDeviceDiscovery()->available()) {
qCWarning(dcWakeOnLan()) << "Failed to discover network devices. The network device discovery is not available.";
info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("Unable to discovery devices in your network."));
return;
}
qCDebug(dcWakeOnLan()) << "Starting network discovery...";
NetworkDeviceDiscoveryReply *discoveryReply = hardwareManager()->networkDeviceDiscovery()->discover();
connect(discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
ThingDescriptors descriptors;
qCDebug(dcWakeOnLan()) << "Discovery finished. Found" << discoveryReply->networkDeviceInfos().count() << "devices";
foreach (const NetworkDeviceInfo &networkDeviceInfo, discoveryReply->networkDeviceInfos()) {
// We need the mac address...
if (networkDeviceInfo.macAddress().isEmpty())
continue;
// Filter out already added network devices, rediscovery is in this case no option
if (myThings().filterByParam(wolThingMacParamTypeId, networkDeviceInfo.macAddress()).count() != 0)
continue;
QString title;
if (networkDeviceInfo.hostName().isEmpty()) {
title = networkDeviceInfo.address().toString();
} else {
title = networkDeviceInfo.hostName() + " (" + networkDeviceInfo.address().toString() + ")";
}
QString description;
if (networkDeviceInfo.macAddressManufacturer().isEmpty()) {
description = networkDeviceInfo.macAddress();
} else {
description = networkDeviceInfo.macAddress() + " (" + networkDeviceInfo.macAddressManufacturer() + ")";
}
ThingDescriptor descriptor(wolThingClassId, title, description);
ParamList params;
params.append(Param(wolThingMacParamTypeId, networkDeviceInfo.macAddress()));
descriptor.setParams(params);
descriptors.append(descriptor);
}
info->addThingDescriptors(descriptors);
info->finish(Thing::ThingErrorNoError);
});
}
void IntegrationPluginWakeOnLan::executeAction(ThingActionInfo *info)
{
qCDebug(dcWakeOnLan) << "Wake up" << info->thing()->name();
@ -48,12 +95,12 @@ void IntegrationPluginWakeOnLan::executeAction(ThingActionInfo *info)
return info->finish(Thing::ThingErrorNoError);
}
void IntegrationPluginWakeOnLan::wakeup(QString mac)
void IntegrationPluginWakeOnLan::wakeup(const QString &macAddress)
{
const char header[] = {char(0xff), char(0xff), char(0xff), char(0xff), char(0xff), char(0xff)};
QByteArray packet = QByteArray::fromRawData(header, sizeof(header));
for(int i = 0; i < 16; ++i) {
packet.append(QByteArray::fromHex(mac.remove(':').toLocal8Bit()));
packet.append(QByteArray::fromHex(QString(macAddress).remove(':').toLocal8Bit()));
}
qCDebug(dcWakeOnLan) << "Created magic packet:" << packet.toHex();
QUdpSocket udpSocket;

View File

@ -45,10 +45,12 @@ class IntegrationPluginWakeOnLan : public IntegrationPlugin
public:
explicit IntegrationPluginWakeOnLan();
void discoverThings(ThingDiscoveryInfo *info) override;
void executeAction(ThingActionInfo *info) override;
private slots:
void wakeup(QString mac);
void wakeup(const QString &macAddress);
};

View File

@ -12,7 +12,7 @@
"id": "3c8f2447-dcd0-4882-8c09-99e579e4d24c",
"name": "wol",
"displayName": "Wake On Lan",
"createMethods": ["user"],
"createMethods": ["user", "discovery"],
"interfaces": ["outputtrigger"],
"paramTypes": [
{

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="cs">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>mac</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>probudit zařízení</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="da">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake On Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>MAC adresse</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>vækningsservice</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on LAN</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake On Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>MAC Adresse</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>Gerät aufwecken</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation type="unfinished"></translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="es">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake On Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>Dirección MAC</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>dispositivo para levantarse</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on LAN</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake on LAN</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>Adresse Mac</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>Réveiller l&apos;appareil</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake On Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>Indirizzo MAC</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>dispositivo wake up</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="nl">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>Mac adres</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>ontwaak-apparaat</translation>

View File

@ -1,34 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pt">
<context>
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WakeOnLan</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="31"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="36"/>
<source>Wake on Lan</source>
<extracomment>The name of the plugin WakeOnLan ({b5a87848-de56-451e-84a6-edd26ad4958f})</extracomment>
<translation>Wake on Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="37"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="42"/>
<source>nymea</source>
<extracomment>The name of the vendor ({2062d64d-3232-433c-88bc-0d33c0ba2ba6})</extracomment>
<translation>nymea</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="28"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="33"/>
<source>Wake On Lan</source>
<extracomment>The name of the ThingClass ({3c8f2447-dcd0-4882-8c09-99e579e4d24c})</extracomment>
<translation>Wake On Lan</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="25"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="30"/>
<source>MAC address</source>
<extracomment>The name of the ParamType (ThingClass: wol, Type: thing, ID: {e2ba04ac-9fe1-4f9d-8152-024c27030cde})</extracomment>
<translation>Endereço MAC</translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="34"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/wakeonlan/plugininfo.h" line="39"/>
<source>Wake up device</source>
<extracomment>The name of the ActionType ({fb9b9d87-218f-4f0d-9e16-39f8a105029a}) of ThingClass wol</extracomment>
<translation>dispositivo de acordar</translation>