From 82e483f8b1442f9f2b67e48cd08d25ac227af19f Mon Sep 17 00:00:00 2001
From: Jessica Hershey <60907719+JHershey69@users.noreply.github.com>
Date: Sun, 14 Nov 2021 16:07:11 -0500
Subject: [PATCH 1/4] 3.1.9
Minor bug fix to clear old alerts
---
src/OpenWeatherOneCall.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/OpenWeatherOneCall.cpp b/src/OpenWeatherOneCall.cpp
index c069749..722ae31 100644
--- a/src/OpenWeatherOneCall.cpp
+++ b/src/OpenWeatherOneCall.cpp
@@ -1,5 +1,5 @@
/*
- OpenWeatherOneCall.cpp v3.1.8
+ OpenWeatherOneCall.cpp v3.1.9
copyright 2020 - Jessica Hershey
www.github.com/JHershey69
@@ -968,7 +968,7 @@ int OpenWeatherOneCall::createCurrent(int sizeCap)
} else forecast[x].snowVolume = daily[x]["snow"]; // 95
} else forecast[x].snowVolume = 0;
-
+
forecast[x].uvIndex = daily[x]["uvi"]; // 6.31
dateTimeConversion(forecast[x].dayTime,forecast[x].weekDayName,9);
@@ -1058,6 +1058,10 @@ int OpenWeatherOneCall::createCurrent(int sizeCap)
}
} //end for
+ }else{
+ // If alerts are not excluded but there are none, reset NUM_MAX_ALERTS and MEMORY
+ MAX_NUM_ALERTS = 0;
+ OpenWeatherOneCall::freeAlertMem();
}
}
From c5581627b63d1b48839fb7aa8fcf96d13bf678c4 Mon Sep 17 00:00:00 2001
From: Jessica Hershey <60907719+JHershey69@users.noreply.github.com>
Date: Sun, 14 Nov 2021 16:09:20 -0500
Subject: [PATCH 2/4] 3.1.9
Minor fix to clear old alerts
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bf70178..ed3295f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# OpenWeatherOneCall v3.1.8 ![IMAGE OF LIGHTNING](https://github.com/JHershey69/OpenWeatherOneCall/blob/master/images/lightning.jpg)
+# OpenWeatherOneCall v3.1.9 ![IMAGE OF LIGHTNING](https://github.com/JHershey69/OpenWeatherOneCall/blob/master/images/lightning.jpg)
## This is for ESP32 only
**OpenWeatherOneCall** library to gather weather information from OpenWeatherMap
@@ -43,3 +43,5 @@ v3.0.0 has a **Legacy Mode** to maintain ease of use for previous versions
--Multiple Alerts memory fix.
**v3.1.7, 3.1.8**
--Fixed missing code.
+
**v3.1.9**
+
--Minor fix to clear old alerts.
From a0d9363f48c0a31117e74e96c552cfe06ef3be47 Mon Sep 17 00:00:00 2001
From: Jessica Hershey <60907719+JHershey69@users.noreply.github.com>
Date: Sun, 14 Nov 2021 16:10:03 -0500
Subject: [PATCH 3/4] 3.1.9
Minor fix to clear old alerts
---
library.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library.properties b/library.properties
index 5b6bb93..c16716c 100644
--- a/library.properties
+++ b/library.properties
@@ -1,5 +1,5 @@
name=OpenWeatherOneCall
-version=3.1.8
+version=3.1.9
author=JHershey69
maintainer=JHershey69
sentence=Current and Seven Day Weather Forecast Library for ESP32.
From 3e9cc532b81a84435d95287b249f979e244d7fe0 Mon Sep 17 00:00:00 2001
From: Jessica Hershey <60907719+JHershey69@users.noreply.github.com>
Date: Sun, 14 Nov 2021 16:10:52 -0500
Subject: [PATCH 4/4] 3.1.9
Minor fix to clear old alerts
---
library.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library.json b/library.json
index f9e18a1..a4204fc 100644
--- a/library.json
+++ b/library.json
@@ -1,6 +1,6 @@
{
"name": "OpenWeatherOneCall",
- "version": "3.1.8",
+ "version": "3.1.9",
"keywords": "openweather, darksky, weather, esp32, arduino",
"description": "OpenWeatherMap Library to use One Call on the ESP32. This library allows the ESP32 to receive and parse the json from OpenWeathermap",
"dependencies":