updated API and added plug-in to debian folder
This commit is contained in:
parent
a51414aa55
commit
e005906eb0
@ -46,7 +46,7 @@ DevicePluginCoinMarketCap::DevicePluginCoinMarketCap()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceManager::DeviceSetupStatus DevicePluginCoinMarketCap::setupDevice(Device *device)
|
Device::DeviceSetupStatus DevicePluginCoinMarketCap::setupDevice(Device *device)
|
||||||
{
|
{
|
||||||
if(!m_pluginTimer) {
|
if(!m_pluginTimer) {
|
||||||
m_pluginTimer = hardwareManager()->pluginTimerManager()->registerTimer(10);
|
m_pluginTimer = hardwareManager()->pluginTimerManager()->registerTimer(10);
|
||||||
@ -55,9 +55,9 @@ DeviceManager::DeviceSetupStatus DevicePluginCoinMarketCap::setupDevice(Device *
|
|||||||
|
|
||||||
if (device->deviceClassId() == currentPricesDeviceClassId) {
|
if (device->deviceClassId() == currentPricesDeviceClassId) {
|
||||||
getPriceCall(device);
|
getPriceCall(device);
|
||||||
return DeviceManager::DeviceSetupStatusSuccess;
|
return Device::DeviceSetupStatusSuccess;
|
||||||
}
|
}
|
||||||
return DeviceManager::DeviceSetupStatusFailure;
|
return Device::DeviceSetupStatusFailure;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DevicePluginCoinMarketCap::deviceRemoved(Device *device)
|
void DevicePluginCoinMarketCap::deviceRemoved(Device *device)
|
||||||
|
|||||||
@ -21,8 +21,8 @@
|
|||||||
#ifndef DEVICEPLUGINCOINMARKETCAP_H
|
#ifndef DEVICEPLUGINCOINMARKETCAP_H
|
||||||
#define DEVICEPLUGINCOINMARKETCAP_H
|
#define DEVICEPLUGINCOINMARKETCAP_H
|
||||||
|
|
||||||
#include "plugin/deviceplugin.h"
|
#include "devices/deviceplugin.h"
|
||||||
#include "devicemanager.h"
|
#include "devices/devicemanager.h"
|
||||||
#include "plugintimer.h"
|
#include "plugintimer.h"
|
||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
@ -38,7 +38,7 @@ class DevicePluginCoinMarketCap : public DevicePlugin
|
|||||||
public:
|
public:
|
||||||
explicit DevicePluginCoinMarketCap();
|
explicit DevicePluginCoinMarketCap();
|
||||||
|
|
||||||
DeviceManager::DeviceSetupStatus setupDevice(Device *device) override;
|
Device::DeviceSetupStatus setupDevice(Device *device) override;
|
||||||
void deviceRemoved(Device *device) override;
|
void deviceRemoved(Device *device) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
18
debian/control
vendored
18
debian/control
vendored
@ -91,7 +91,8 @@ Depends: ${shlibs:Depends},
|
|||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
nymea-plugins-translations,
|
nymea-plugins-translations,
|
||||||
Description: nymea.io plugin for bose soundtouch
|
Description: nymea.io plugin for bose soundtouch
|
||||||
The nymea daemon is a plugin based IoT (Internet of Things) server. The
|
|
||||||
|
The nymea daemon is a plugin based IoT (Internet of Things) server. The
|
||||||
server works like a translator for devices, things and services and
|
server works like a translator for devices, things and services and
|
||||||
allows them to interact.
|
allows them to interact.
|
||||||
With the powerful rule engine you are able to connect any device available
|
With the powerful rule engine you are able to connect any device available
|
||||||
@ -100,6 +101,21 @@ Description: nymea.io plugin for bose soundtouch
|
|||||||
This package will install the nymea.io plugin for bose soundtouch.
|
This package will install the nymea.io plugin for bose soundtouch.
|
||||||
|
|
||||||
|
|
||||||
|
Package: nymea-plugin-coinmarketcap
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends},
|
||||||
|
${misc:Depends},
|
||||||
|
nymea-plugins-translations,
|
||||||
|
Description: nymea.io plugin for coin market cap
|
||||||
|
The nymea daemon is a plugin based IoT (Internet of Things) server. The
|
||||||
|
server works like a translator for devices, things and services and
|
||||||
|
allows them to interact.
|
||||||
|
With the powerful rule engine you are able to connect any device available
|
||||||
|
in the system and create individual scenes and behaviors for your environment.
|
||||||
|
.
|
||||||
|
This package will install the nymea.io plugin for coinmarketcap
|
||||||
|
|
||||||
|
|
||||||
Package: nymea-plugin-commandlauncher
|
Package: nymea-plugin-commandlauncher
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends},
|
Depends: ${shlibs:Depends},
|
||||||
|
|||||||
1
debian/nymea-plugin-coinmarketcap.install.in
vendored
Normal file
1
debian/nymea-plugin-coinmarketcap.install.in
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/libnymea_deviceplugincoinmarketcap.so
|
||||||
Loading…
x
Reference in New Issue
Block a user