Skip to content

Commit

Permalink
Merge pull request #36 from JHershey69/Update313
Browse files Browse the repository at this point in the history
Update313
  • Loading branch information
JHershey69 authored Aug 26, 2021
2 parents af93279 + 21180c6 commit 5b7ed52
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 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.2 ![IMAGE OF LIGHTNING](https://github.com/JHershey69/OpenWeatherOneCall/blob/master/images/lightning.jpg)
# OpenWeatherOneCall v3.1.3 ![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 @@ -28,3 +28,5 @@ v3.0.0 has a **Legacy Mode** to maintain ease of use for previous versions
<br>--minor bug fix to historical rain and snow.
<br>v3.1.2
<br>--minor bug fix to library files.
<br>v3.1.3
<br>--minor bug fix to historical rain and snow.
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.2",
"version": "3.1.3",
"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.2
version=3.1.3
author=JHershey69
maintainer=JHershey69 <[email protected]>
sentence=Current and Seven Day Weather Forecast Library for ESP32.
Expand Down
12 changes: 6 additions & 6 deletions src/OpenWeatherOneCall.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
OpenWeatherOneCall.cpp v3.1.0
OpenWeatherOneCall.cpp v3.1.3
copyright 2020 - Jessica Hershey
www.github.com/JHershey69
Expand Down Expand Up @@ -537,7 +537,7 @@ int OpenWeatherOneCall::createHistory()
else
history[0].rainVolume = current["rain"]["1h"]; // 95

}
}else history[0].rainVolume = 0;



Expand All @@ -549,9 +549,9 @@ int OpenWeatherOneCall::createHistory()
history[0].snowVolume = (temp/25.4); // 95
}
else
history[0].rainVolume = current["snow"]["1h"]; // 95
history[0].snowVolume = current["snow"]["1h"]; // 95

}
}else history[0].snowVolume = 0;



Expand Down Expand Up @@ -623,7 +623,7 @@ int OpenWeatherOneCall::createHistory()
else
history[x].rainVolume = hourly_0["rain"]["1h"]; // 95

}
}else history[0].rainVolume = 0;


if(hourly_0["snow"])
Expand All @@ -636,7 +636,7 @@ int OpenWeatherOneCall::createHistory()
else
history[x].snowVolume = hourly_0["snow"]["1h"]; // 95

}
}else history[0].snowVolume = 0;

JsonObject hourly_0_weather_0 = hourly_0["weather"][0];
history[x].id = hourly_0_weather_0["id"]; // 800
Expand Down

0 comments on commit 5b7ed52

Please sign in to comment.