spothinta: Add Qt6 support
parent
aba181a812
commit
40a67689a5
|
|
@ -1,6 +1,6 @@
|
|||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
*
|
||||
* Copyright 2013 - 2022, nymea GmbH
|
||||
* Copyright 2013 - 2025, nymea GmbH
|
||||
* Contact: contact@nymea.io
|
||||
*
|
||||
* This file is part of nymea.
|
||||
|
|
@ -29,10 +29,12 @@
|
|||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
#include "integrationpluginspothinta.h"
|
||||
#include "integrations/thing.h"
|
||||
#include "plugininfo.h"
|
||||
#include "hardwaremanager.h"
|
||||
#include "network/networkaccessmanager.h"
|
||||
|
||||
#include <integrations/thing.h>
|
||||
#include <hardwaremanager.h>
|
||||
#include <network/networkaccessmanager.h>
|
||||
#include <plugintimer.h>
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QJsonDocument>
|
||||
|
|
@ -154,7 +156,7 @@ void IntegrationPluginSpotHinta::processPriceData(Thing *thing, const QVariant &
|
|||
minPrice = price;
|
||||
|
||||
thing->setStateValue(spothintaCurrentMarketPriceStateTypeId, price);
|
||||
thing->setStateValue(spothintaValidUntilStateTypeId, endTime.toLocalTime().toTime_t());
|
||||
thing->setStateValue(spothintaValidUntilStateTypeId, endTime.toLocalTime().toSecsSinceEpoch());
|
||||
thing->setStateValue(spothintaCurrentRankStateTypeId, rank);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
*
|
||||
* Copyright 2013 - 2022, nymea GmbH
|
||||
* Copyright 2013 - 2025, nymea GmbH
|
||||
* Contact: contact@nymea.io
|
||||
*
|
||||
* This file is part of nymea.
|
||||
|
|
@ -31,10 +31,11 @@
|
|||
#ifndef INTEGRATIONPLUGINSPOTHINTA_H
|
||||
#define INTEGRATIONPLUGINSPOTHINTA_H
|
||||
|
||||
#include "integrations/integrationplugin.h"
|
||||
#include "plugintimer.h"
|
||||
#include <integrations/integrationplugin.h>
|
||||
#include "extern-plugininfo.h"
|
||||
|
||||
class PluginTimer;
|
||||
|
||||
class IntegrationPluginSpotHinta : public IntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
Loading…
Reference in New Issue