Skip to content

Commit

Permalink
fix: ForecastNextHour()
Browse files Browse the repository at this point in the history
Update ForecastNextHour.mjs
  • Loading branch information
VirgilClyne committed Oct 4, 2024
1 parent 63acf87 commit 836c8bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/class/ForecastNextHour.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { log } from "../utils/utils.mjs";
export default class ForecastNextHour {
Name = "ForecastNextHour";
Version = "v1.2.7";
Version = "v1.2.10";
Author = "iRingo";

static #Configs = {
Expand Down Expand Up @@ -377,7 +377,7 @@ export default class ForecastNextHour {
break;
case "CONSTANT": // ✅当前RAIN
// ✅确定CONSTANT
Condition.endCondition = minute.condition;
Condition.beginCondition = Condition.endCondition;
Condition.endTime = 0; // ⚠️空值必须写零!
Condition.parameters = [];
Conditions.push({ ...Condition });
Expand All @@ -386,7 +386,7 @@ export default class ForecastNextHour {
// ✅确定START
Conditions.push({ ...Condition });
// ✅补充CONSTANT
Condition.endCondition = previousMinute.condition;
Condition.beginCondition = Condition.endCondition;
Condition.forecastToken = "CONSTANT";
Condition.startTime = Condition.endTime;
Condition.endTime = 0; // ⚠️空值必须写零!
Expand Down

0 comments on commit 836c8bf

Please sign in to comment.