#pragma once #include "DomoticzHardware.h" class CAccuWeather : public CDomoticzHardwareBase { public: CAccuWeather(int ID, const std::string &APIKey, const std::string &Location); ~CAccuWeather() override = default; bool WriteToHardware(const char *pdata, unsigned char length) override; std::string GetForecastURL(); private: void Init(); bool StartHardware() override; bool StopHardware() override; void Do_Work(); void GetMeterDetails(); std::string GetLocationKey(); private: std::string m_APIKey; std::string m_Location; std::string m_LocationKey; std::string m_ForecastURL; std::shared_ptr m_thread; };