Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev-0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dleo committed Apr 7, 2022
2 parents dde1b36 + d985dfe commit 651339d
Show file tree
Hide file tree
Showing 10 changed files with 483 additions and 343 deletions.
3 changes: 2 additions & 1 deletion include/faov.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ float sol_rad_from_t(float et_rad, float cs_rad, float tmin, float tmax, bool co
float sol_rad_island(float et_rad);
float sunset_hour_angle(float latitude, float sol_dec);
float wind_speed_2m(float ws, float z);
float fao56_eto_hr(float net_rad, float t, float psy, float ws, float delta_svp, float avp, float svp, double shf = 0.0);
float fao56_eto_hr(float net_rad, float t, float psy, float ws, float delta_svp, float avp, float svp, double g = 0.0);
float hourly_soil_heat_flux(float net_radiation, bool isDay);
#endif
10 changes: 6 additions & 4 deletions include/weather.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "BME280I2C.h"
#include "BH1750.h"
#include <WiFiClientSecure.h>
#include <TimeLib.h>
#include "esp_deep_sleep.h"
#include <esp_task_wdt.h>
/**
* Pin definitions
*/
Expand Down Expand Up @@ -86,7 +89,6 @@ extern DallasTemperature temperatureSensor;
extern bool published;
extern bool lowBattery;
extern long initialMillis;
extern float currentRain;
extern struct tm timeinfo;
extern PubSubClient mqtt;
extern Adafruit_SI1145 uv;
Expand Down Expand Up @@ -135,10 +137,10 @@ boolean sendData(struct sensorData *enviroment);
void connectAWS();
void callback(char* topic, byte* payload, unsigned int length);
void clearRainfall(void);
void clearRainfallHour(int hourPtr);
void addTipsToHour(int count);
void printHourlyArray (void);
int getRainByHour(int hour);
int diffHour(int hour, int diff = 1);
float getRainByHour(int hour);
int last24(void);
void readSensorsData(struct sensorData *environment);
void readMoonPhase(struct sensorData *environment);
Expand All @@ -163,7 +165,7 @@ void readWindSpeed(struct sensorData *environment );
void readWindDirection(struct sensorData *environment);
void IRAM_ATTR windTick(void);
int calculateDayOfYear(int day, int month, int year);

bool isDay(time_t t);
#endif


Expand Down
Loading

0 comments on commit 651339d

Please sign in to comment.