aqhome-react: more work on modules and networks.
- tested AND network and new suntime units. - add unit XML property "invert" (inverts output for logical units)
This commit is contained in:
39
apps/aqhome-react/units/u_suntime_p.h
Normal file
39
apps/aqhome-react/units/u_suntime_p.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (c) by 2024 Martin Preuss, all rights reserved.
|
||||
*
|
||||
* The license for this file can be found in the file COPYING which you
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQHOMEREACT_U_SUNTIME_P_H
|
||||
#define AQHOMEREACT_U_SUNTIME_P_H
|
||||
|
||||
|
||||
#include "./u_suntime.h"
|
||||
|
||||
#include "aqhome-react/aqhome_react.h"
|
||||
#include "aqhome-react/types/unit.h"
|
||||
|
||||
#include <gwenhywfar/gwentime.h>
|
||||
#include <gwenhywfar/gwendate.h>
|
||||
|
||||
|
||||
typedef struct AQHREACT_UNIT_SUNTIME AQHREACT_UNIT_SUNTIME;
|
||||
struct AQHREACT_UNIT_SUNTIME {
|
||||
GWEN_DATE *date;
|
||||
int sunRiseTimeInMinutes;
|
||||
int sunSetTimeInMinutes;
|
||||
|
||||
double latitude;
|
||||
double longitude;
|
||||
int offsetMinsForSunrise;
|
||||
int offsetMinsForSunset;
|
||||
|
||||
time_t lastCheckTime;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user