Skip to content

Commit

Permalink
Merge pull request #44 from JHershey69/upgrade
Browse files Browse the repository at this point in the history
Upgrade
  • Loading branch information
JHershey69 authored Nov 14, 2021
2 parents c3d259d + 3e9cc53 commit 9d214b0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -43,3 +43,5 @@ v3.0.0 has a **Legacy Mode** to maintain ease of use for previous versions
<br>--Multiple Alerts memory fix.
<br>**v3.1.7, 3.1.8**
<br>--Fixed missing code.
<br>**v3.1.9**
<br>--Minor fix to clear old alerts.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=OpenWeatherOneCall
version=3.1.8
version=3.1.9
author=JHershey69
maintainer=JHershey69 <[email protected]>
sentence=Current and Seven Day Weather Forecast Library for ESP32.
Expand Down
8 changes: 6 additions & 2 deletions src/OpenWeatherOneCall.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
OpenWeatherOneCall.cpp v3.1.8
OpenWeatherOneCall.cpp v3.1.9
copyright 2020 - Jessica Hershey
www.github.com/JHershey69
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 9d214b0

Please sign in to comment.