' +
'| ' + val.timestamp + ' | ' +
@@ -2744,9 +2754,13 @@
});
if (groupType == 0) {
+ //日(hour) - 顯示當天最後一筆
avgPR = pr;
+ avgIrr_day = irr_day;
} else {
+ //顯示多日 - 顯示平均值
avgPR = avgPR / rel.data.length;
+ avgIrr_day = avgIrr_day / rel.data.length;
}
//alert('avgPR = ' + avgPR + ' rowCT=' + rel.data.length);
@@ -2761,7 +2775,7 @@
'' + kwhALL.toFixed(2) + ' | ' +
'' + kwhkwp + ' | ' +
//'' + irradianceALL.toFixed(2) + ' | ' + // 改成累積日照 by jiahao 2022-04-30 00:444
- '' + irr_day.toFixed(2) + ' | ' +
+ '' + avgIrr_day.toFixed(2) + ' | ' +
'' + avgPR.toFixed(2) + ' | ' +
'' + tempALL.toFixed(2) + ' | ' +
'
');
diff --git a/SolarPower/appsettings.Development.json b/SolarPower/appsettings.Development.json
index d477624..6d01b33 100644
--- a/SolarPower/appsettings.Development.json
+++ b/SolarPower/appsettings.Development.json
@@ -17,21 +17,21 @@
//},
"mySql": "server=210.61.91.43;user=idafenweb;Database=solar_master;Port=10068;password=P@ssw0rd;charset='utf8';pooling=true;sslmode=none;",
//
- //"DBConfig": {
- // "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
- // "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
- // "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
- // "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
- // "Password": "8WMHBEWuT0XoAB4kzduQHA=="
- //},
- // FIC woG
"DBConfig": {
- "Server": "MWAxcj1mgmbZ8tB6NgApnQ==",
- "port": "CY1x+1WYXRCBab3wKnBCOQ==",
+ "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
+ "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
"Database": "CEyYZnO8B5+yTXQcFSsiBA==",
- "Root": "4koIJVzfp6veImONCwQy3A==",
- "Password": "y4uPqlH9ncTgR/I07qpwaA=="
+ "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
+ "Password": "8WMHBEWuT0XoAB4kzduQHA=="
},
+ // FIC woG
+ //"DBConfig": {
+ // "Server": "MWAxcj1mgmbZ8tB6NgApnQ==",
+ // "port": "CY1x+1WYXRCBab3wKnBCOQ==",
+ // "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
+ // "Root": "4koIJVzfp6veImONCwQy3A==",
+ // "Password": "y4uPqlH9ncTgR/I07qpwaA=="
+ //},
"BackgroundServiceCron": {
"CalcPowerStationJob": "0 5 * * * ?",
"CalcAvgPowerStationJob": "0 0 2 * * ?",
diff --git a/SolarPower/appsettings.json b/SolarPower/appsettings.json
index b3ccdc1..4d4ba38 100644
--- a/SolarPower/appsettings.json
+++ b/SolarPower/appsettings.json
@@ -19,21 +19,21 @@
// "Password": "y4uPqlH9ncTgR/I07qpwaA=="
//},
// FIC woG
- "DBConfig": {
- "Server": "MWAxcj1mgmbZ8tB6NgApnQ==",
- "port": "CY1x+1WYXRCBab3wKnBCOQ==",
- "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
- "Root": "pBX64+ALGFnLiHGRFXNh7w==",
- "Password": "bOlWkSFsV3qNLkZTJ3UPog=="
- },
- //
//"DBConfig": {
- // "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
- // "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
+ // "Server": "MWAxcj1mgmbZ8tB6NgApnQ==",
+ // "port": "CY1x+1WYXRCBab3wKnBCOQ==",
// "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
- // "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
- // "Password": "8WMHBEWuT0XoAB4kzduQHA=="
+ // "Root": "pBX64+ALGFnLiHGRFXNh7w==",
+ // "Password": "bOlWkSFsV3qNLkZTJ3UPog=="
//},
+ //
+ "DBConfig": {
+ "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
+ "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
+ "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
+ "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
+ "Password": "8WMHBEWuT0XoAB4kzduQHA=="
+ },
"BackgroundServiceCron": {
"CalcPowerStationJob": "0 5 * * * ?",
"CalcAvgPowerStationJob": "0 0 2 * * ?",
diff --git a/solarApp/App.config b/solarApp/App.config
index 12a99f8..c956531 100644
--- a/solarApp/App.config
+++ b/solarApp/App.config
@@ -2,8 +2,8 @@