seems like it works

This commit is contained in:
2023-05-23 15:31:06 +03:00
parent 61acba7e17
commit a7c53df2e7
4 changed files with 140 additions and 21 deletions

View File

@@ -23,6 +23,24 @@
// maximal time difference for records in statbuf - one hour
#define STATMAXT (3600.)
double stat_for(double Tsec/*, weather_t *w*/);
// main statistical data
typedef struct{
double min;
double max;
double mean;
double rms;
} stat_t;
typedef struct{
stat_t windspeed;
stat_t winddir;
stat_t pressure;
stat_t temperature;
stat_t humidity;
stat_t rainfall;
stat_t tmeasure;
} weatherstat_t;
double stat_for(double Tsec, weatherstat_t *wstat);
void addtobuf(weather_t *record);
double get_tmax();