Skip to content

Commit

Permalink
customize grid outage button to recommend PV size and only activate w…
Browse files Browse the repository at this point in the history
…hen outage steps are specified
  • Loading branch information
brtietz committed Oct 28, 2023
1 parent bb115cd commit 14289b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy/runtime/ui/Battery REopt Outage Sizing.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,19 @@
"VarDatabase": {},
"Equations": [],
"Callbacks": [
"on_load{'Battery REopt Outage Sizing'} = define()\r",
"{\r",
"\tgrid_outage = value('grid_outage');\r",
"\tenable('call_reopt_outage', sum(grid_outage) > 0);\r",
"};\r",
"\r",
"\r",
"on_change{'grid_outage'} = define()\r",
"{\r",
"\tgrid_outage = value('grid_outage');\r",
"\tenable('call_reopt_outage', sum(grid_outage) > 0);\r",
"};\r",
"\r",
"on_change{'call_reopt_outage'} = define()\r",
"{\r",
"\t// check inputs before making REopt call\r",
Expand Down Expand Up @@ -324,6 +337,8 @@
"\tvalue('batt_dispatch_discharge_only_load_exceeds_system', false);\r",
"\trefresh();\r",
"\r",
"\tmsgbox('REopt found an optimal PV size of ' + to_string(pv.size_kw) + ' kW\\n' +\r",
"\t\t\t'This will need to be applied manually.' );\r",
"};"
]
}

0 comments on commit 14289b0

Please sign in to comment.