From 6fd39e3ea0eeb95bb27130a8819a582f0280af8f Mon Sep 17 00:00:00 2001 From: Mark Crossley <1196094+mcrossley@users.noreply.github.com> Date: Tue, 9 Aug 2022 15:27:13 +0100 Subject: [PATCH] Updated for Cumulus MX v 3.20.0+, now has 24 hour rainfall values --- ExportToMySQL.csproj | 2 +- Program.cs | 4 ++-- Properties/AssemblyInfo.cs | 6 +++--- Updates.txt | 8 ++++++++ packages.config | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ExportToMySQL.csproj b/ExportToMySQL.csproj index 4a2a37d..789ddc2 100644 --- a/ExportToMySQL.csproj +++ b/ExportToMySQL.csproj @@ -49,7 +49,7 @@ - packages\MySqlConnector.2.1.10\lib\net471\MySqlConnector.dll + packages\MySqlConnector.2.1.11\lib\net471\MySqlConnector.dll diff --git a/Program.cs b/Program.cs index de2c00e..5321bea 100644 --- a/Program.cs +++ b/Program.cs @@ -237,7 +237,7 @@ private static void DoDayfileExport() if (File.Exists(filename)) { Console.WriteLine("Dayfile exists, beginning export"); - string StartOfDayfileInsertSQL = "INSERT IGNORE INTO " + MySqlDayfileTable + " (LogDate,HighWindGust,HWindGBear,THWindG,MinTemp,TMinTemp,MaxTemp,TMaxTemp,MinPress,TMinPress,MaxPress,TMaxPress,MaxRainRate,TMaxRR,TotRainFall,AvgTemp,TotWindRun,HighAvgWSpeed,THAvgWSpeed,LowHum,TLowHum,HighHum,THighHum,TotalEvap,HoursSun,HighHeatInd,THighHeatInd,HighAppTemp,THighAppTemp,LowAppTemp,TLowAppTemp,HighHourRain,THighHourRain,LowWindChill,TLowWindChill,HighDewPoint,THighDewPoint,LowDewPoint,TLowDewPoint,DomWindDir,HeatDegDays,CoolDegDays,HighSolarRad,THighSolarRad,HighUV,THighUV,MaxFeelsLike,TMaxFeelsLike,MinFeelsLike,TMinFeelsLike,MaxHumidex,TMaxHumidex,HWindGBearSym,DomWindDirSym)"; + string StartOfDayfileInsertSQL = "INSERT IGNORE INTO " + MySqlDayfileTable + " (LogDate,HighWindGust,HWindGBear,THWindG,MinTemp,TMinTemp,MaxTemp,TMaxTemp,MinPress,TMinPress,MaxPress,TMaxPress,MaxRainRate,TMaxRR,TotRainFall,AvgTemp,TotWindRun,HighAvgWSpeed,THAvgWSpeed,LowHum,TLowHum,HighHum,THighHum,TotalEvap,HoursSun,HighHeatInd,THighHeatInd,HighAppTemp,THighAppTemp,LowAppTemp,TLowAppTemp,HighHourRain,THighHourRain,LowWindChill,TLowWindChill,HighDewPoint,THighDewPoint,LowDewPoint,TLowDewPoint,DomWindDir,HeatDegDays,CoolDegDays,HighSolarRad,THighSolarRad,HighUV,THighUV,MaxFeelsLike,TMaxFeelsLike,MinFeelsLike,TMinFeelsLike,MaxHumidex,TMaxHumidex,ChillHours,HighRain24h,THighRain24h,HWindGBearSym,DomWindDirSym)"; int linenum = 0; @@ -264,7 +264,7 @@ private static void DoDayfileExport() StringBuilder sb = new StringBuilder(StartOfDayfileInsertSQL + " Values('" + sqldate + "',"); - for (int i = 1; i < 52; i++) + for (int i = 1; i < 55; i++) { if (i < st.Count && !string.IsNullOrEmpty(st[i])) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index f95d7a4..e535a1d 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ExportToMySQL")] -[assembly: AssemblyCopyright("Copyright © 2015-2021")] +[assembly: AssemblyCopyright("Copyright © 2015-2022")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -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("1.5.0.0")] -[assembly: AssemblyFileVersion("1.5.0.0")] +[assembly: AssemblyVersion("1.6.0.0")] +[assembly: AssemblyFileVersion("1.6.0.0")] diff --git a/Updates.txt b/Updates.txt index 5bd21ee..a31659e 100644 --- a/Updates.txt +++ b/Updates.txt @@ -1,3 +1,11 @@ +ver 1.6.0 +————————— +- Updated for Cumulus MX v 3.20.0+, now has 24 hour rainfall values + +ver 1.5.0 +————————— +- Updated libraries to match Cumulus MX v3.18.0+ + ver 1.4.0 ————————— - Updated to .Net Framework 4.8 to match Cumulus MX v3.14.0+ diff --git a/packages.config b/packages.config index 020dc34..233f3ba 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - +