diff --git a/SolarPower/Startup.cs b/SolarPower/Startup.cs index 965d7f0..6b749ed 100644 --- a/SolarPower/Startup.cs +++ b/SolarPower/Startup.cs @@ -96,13 +96,13 @@ namespace SolarPower #region ¥[¤J­I´º°õ¦æ //services.AddHostedService(); //if (envName == "Production") - //if (envName != "Production") - //{ + if (envName != "Production") + { ////²K¥[QuartzªA°È services.AddSingleton(); services.AddSingleton(); ////²K¥[Job - //#region ©w´Á­pµe + //#region ©w´Á­pµe / ¨C¤é email ³øªíªA°È services.AddSingleton(); services.AddSingleton( new JobSchedule(jobType: typeof(OperationScheduleJob), cronExpression: Configuration.GetValue("BackgroundServiceCron:OperationScheduleJob")) @@ -147,7 +147,7 @@ namespace SolarPower //#endregion services.AddHostedService(); - //} + } #endregion services.AddApplicationInsightsTelemetry(); diff --git a/SolarPower/appsettings.json b/SolarPower/appsettings.json index 1339b93..e566fb4 100644 --- a/SolarPower/appsettings.json +++ b/SolarPower/appsettings.json @@ -35,7 +35,7 @@ "Password": "8WMHBEWuT0XoAB4kzduQHA==" }, "BackgroundServiceCron": { - "CalcPowerStationJob": "0 14 * * * ?", + "CalcPowerStationJob": "0 05 * * * ?", "CalcAvgPowerStationJob": "0 12 0 * * ?", "OperationScheduleJob": "0 0 8 * * ?", "CalcInverter15minJob": "0 2/15 * * * ?", diff --git a/solarApp/fmArchive.cs b/solarApp/fmArchive.cs index df9b3b2..39826eb 100644 --- a/solarApp/fmArchive.cs +++ b/solarApp/fmArchive.cs @@ -57,7 +57,7 @@ namespace solarApp private void fmArchive_Load(object sender, EventArgs e) { - MessageBox.Show(" loading "); + // MessageBox.Show(" loading "); #region 電站清單 int i = 0; var site_list = stationSvc.get_station_list();