[BGService]把沒用到的天氣資訊註解

This commit is contained in:
張家睿 2025-02-05 11:07:40 +08:00
parent 60003dd89f
commit bd57b6a5f0

View File

@ -882,33 +882,32 @@ namespace BackendWorkerService.Quartz.Jobs
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "露點溫度":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].DewPoint);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
//case "露點溫度":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].DewPoint);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
case "相對濕度":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].RelativeHumidity);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "體感溫度":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].ApparentTemperature);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "舒適度指數":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].ComfortIndex);
WeatherAPIdb.Add("@get_value2", b.ElementValue[0].ComfortIndexDescription);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "風速":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindSpeed);
WeatherAPIdb.Add("@get_value2", b.ElementValue[0].BeaufortScale);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "風向":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindDirection);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
//case "體感溫度":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].ApparentTemperature);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
//case "舒適度指數":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].ComfortIndex);
// WeatherAPIdb.Add("@get_value2", b.ElementValue[0].ComfortIndexDescription);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
//case "風速":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindSpeed);
// WeatherAPIdb.Add("@get_value2", b.ElementValue[0].BeaufortScale);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
//case "風向":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].WindDirection);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
case "3小時降雨機率":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].ProbabilityOfPrecipitation);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
@ -918,11 +917,10 @@ namespace BackendWorkerService.Quartz.Jobs
WeatherAPIdb.Add("@get_value2", b.ElementValue[0].WeatherCode);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
case "天氣預報綜合描述":
WeatherAPIdb.Add("@get_value", b.ElementValue[0].WeatherDescription);
WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
break;
//case "天氣預報綜合描述":
// WeatherAPIdb.Add("@get_value", b.ElementValue[0].WeatherDescription);
// WeatherAPIdbS.Add(new Dictionary<string, object>(WeatherAPIdb));
// break;
}
}