Skip to content

Commit

Permalink
Merge pull request #159 from mcrossley/master
Browse files Browse the repository at this point in the history
v3.21.2
  • Loading branch information
mcrossley authored Sep 23, 2022
2 parents d6cdc94 + bb6683c commit d7932e2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
7 changes: 5 additions & 2 deletions CumulusMX/HttpStationEcowitt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,12 @@ public string ApplyData(string dataString, bool main, DateTime? ts = null)
if ((recDate.Minute % 20) == 0 || lastMinute == -1 && data["runtime"] != null)
{
var runtime = Convert.ToInt32(data["runtime"]);
var uptime = TimeSpan.FromSeconds(runtime);
if (runtime > 0)
{
var uptime = TimeSpan.FromSeconds(runtime);

cumulus.LogMessage($"Ecowitt Gateway uptime = {runtime} secs - {uptime:c}");
cumulus.LogMessage($"Ecowitt Gateway uptime = {runtime} secs - {uptime:c}");
}
}

lastMinute = recDate.Minute;
Expand Down
6 changes: 3 additions & 3 deletions CumulusMX/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Cumulus MX")]
[assembly: AssemblyDescription("Version 3.21.1 - Build 3205")]
[assembly: AssemblyDescription("Version 3.21.2 - Build 3206")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Cumulus MX")]
Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.21.1.3205")]
[assembly: AssemblyFileVersion("3.21.1.3205")]
[assembly: AssemblyVersion("3.21.2.3206")]
[assembly: AssemblyFileVersion("3.21.2.3206")]
19 changes: 12 additions & 7 deletions CumulusMX/WeatherStation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6288,14 +6288,19 @@ public void DoTrendValues(DateTime ts, bool rollover = false)
}
else
{
if (TempReadyToPlot)
{
// calculate and display the temp trend
temptrendval = (OutdoorTemperature - retVals[0].OutsideTemp) / 3.0F;
cumulus.TempChangeAlarm.CheckAlarm(temptrendval);
}

// calculate and display the temp trend
temptrendval = (OutdoorTemperature - retVals[0].OutsideTemp) / 3.0F;
cumulus.TempChangeAlarm.CheckAlarm(temptrendval);

// calculate and display the pressure trend
presstrendval = (Pressure - retVals[0].Pressure) / 3.0;
cumulus.PressChangeAlarm.CheckAlarm(presstrendval);
if (PressReadyToPlot)
{
// calculate and display the pressure trend
presstrendval = (Pressure - retVals[0].Pressure) / 3.0;
cumulus.PressChangeAlarm.CheckAlarm(presstrendval);
}

// Convert for display
//trendval = ConvertPressMBToUser(presstrendval);
Expand Down
9 changes: 8 additions & 1 deletion Updates.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
3.21.2 - b3206
——————————————
Fixed
- Pressure/Temperature trend alarms triggering before the first data has been received


3.21.1 - b3205
——————————————
Fixed: Custom MySQL settings
Fixed
- Custom MySQL settings


3.21.0 - b3204
Expand Down

0 comments on commit d7932e2

Please sign in to comment.