From bd57b6a5f05687984785be86b9d49469e936db4b Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Wed, 5 Feb 2025 11:07:40 +0800 Subject: [PATCH] =?UTF-8?q?[BGService]=E6=8A=8A=E6=B2=92=E7=94=A8=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E5=A4=A9=E6=B0=A3=E8=B3=87=E8=A8=8A=E8=A8=BB=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Quartz/Jobs/WeatherAPIJob.cs | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs b/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs index 259282c..aceec25 100644 --- a/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs +++ b/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs @@ -882,33 +882,32 @@ namespace BackendWorkerService.Quartz.Jobs WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); break; - case "露點溫度": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].DewPoint); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; - + //case "露點溫度": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].DewPoint); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; case "相對濕度": WeatherAPIdb.Add("@get_value", b.ElementValue[0].RelativeHumidity); WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); break; - case "體感溫度": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].ApparentTemperature); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; - case "舒適度指數": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].ComfortIndex); - WeatherAPIdb.Add("@get_value2", b.ElementValue[0].ComfortIndexDescription); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; - case "風速": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindSpeed); - WeatherAPIdb.Add("@get_value2", b.ElementValue[0].BeaufortScale); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; - case "風向": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindDirection); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; + //case "體感溫度": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].ApparentTemperature); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; + //case "舒適度指數": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].ComfortIndex); + // WeatherAPIdb.Add("@get_value2", b.ElementValue[0].ComfortIndexDescription); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; + //case "風速": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindSpeed); + // WeatherAPIdb.Add("@get_value2", b.ElementValue[0].BeaufortScale); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; + //case "風向": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindDirection); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; case "3小時降雨機率": WeatherAPIdb.Add("@get_value", b.ElementValue[0].ProbabilityOfPrecipitation); WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); @@ -918,11 +917,10 @@ namespace BackendWorkerService.Quartz.Jobs WeatherAPIdb.Add("@get_value2", b.ElementValue[0].WeatherCode); WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); break; - - case "天氣預報綜合描述": - WeatherAPIdb.Add("@get_value", b.ElementValue[0].WeatherDescription); - WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); - break; + //case "天氣預報綜合描述": + // WeatherAPIdb.Add("@get_value", b.ElementValue[0].WeatherDescription); + // WeatherAPIdbS.Add(new Dictionary(WeatherAPIdb)); + // break; } }