mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Stats
Testing time! Also new: Effects dirs are now created automatically
This commit is contained in:
@@ -50,6 +50,7 @@ HyperionDaemon::HyperionDaemon(QString configFile, QObject *parent)
|
||||
, _fbGrabber(nullptr)
|
||||
, _osxGrabber(nullptr)
|
||||
, _hyperion(nullptr)
|
||||
, _stats(nullptr)
|
||||
{
|
||||
loadConfig(configFile, CURRENT_CONFIG_VERSION );
|
||||
|
||||
@@ -99,6 +100,7 @@ void HyperionDaemon::freeObjects()
|
||||
delete _protoServer;
|
||||
delete _boblightServer;
|
||||
delete _udpListener;
|
||||
delete _stats;
|
||||
|
||||
_v4l2Grabbers.clear();
|
||||
_amlGrabber = nullptr;
|
||||
@@ -110,6 +112,7 @@ void HyperionDaemon::freeObjects()
|
||||
_protoServer = nullptr;
|
||||
_boblightServer = nullptr;
|
||||
_udpListener = nullptr;
|
||||
_stats = nullptr;
|
||||
}
|
||||
|
||||
void HyperionDaemon::run()
|
||||
@@ -302,6 +305,9 @@ void HyperionDaemon::startNetworkServices()
|
||||
{
|
||||
KODIVideoChecker* kodiVideoChecker = KODIVideoChecker::getInstance();
|
||||
|
||||
// Create Stats
|
||||
_stats = new Stats();
|
||||
|
||||
// Create Json server if configuration is present
|
||||
unsigned int jsonPort = 19444;
|
||||
if (_qconfig.contains("jsonServer"))
|
||||
|
@@ -45,6 +45,7 @@
|
||||
#include <protoserver/ProtoServer.h>
|
||||
#include <boblightserver/BoblightServer.h>
|
||||
#include <udplistener/UDPListener.h>
|
||||
#include <utils/Stats.h>
|
||||
#include <QJsonObject>
|
||||
|
||||
class HyperionDaemon : public QObject
|
||||
@@ -92,6 +93,7 @@ private:
|
||||
FramebufferWrapper* _fbGrabber;
|
||||
OsxWrapper* _osxGrabber;
|
||||
Hyperion* _hyperion;
|
||||
Stats* _stats;
|
||||
|
||||
unsigned _grabber_width;
|
||||
unsigned _grabber_height;
|
||||
|
Reference in New Issue
Block a user