-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from US-JOET/add_grid_integration
💄 ⚡Add grid integration using node-red
- Loading branch information
Showing
7 changed files
with
1,156 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
TAG=0.0.20 | ||
TAG=0.0.21 | ||
|
||
EVEREST_MANAGER_CPUS='1.0' | ||
EVEREST_MANAGER_MEMORY='1024mb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/modules/API/API.cpp b/modules/API/API.cpp | ||
index 68c4900d..03425dc4 100644 | ||
--- a/ext/source/modules/API/API.cpp | ||
+++ b/ext/source/modules/API/API.cpp | ||
@@ -573,6 +573,7 @@ void API::init() { | ||
if (this->r_ocpp.size() == 1) { | ||
|
||
this->r_ocpp.at(0)->subscribe_is_connected([this](bool is_connected) { | ||
+ EVLOG_info << "Received OCPP connection status callback with is_connected: " << is_connected; | ||
std::scoped_lock lock(ocpp_data_mutex); | ||
if (is_connected) { | ||
this->ocpp_connection_status = "connected"; | ||
@@ -582,6 +583,7 @@ void API::init() { | ||
}); | ||
|
||
this->r_ocpp.at(0)->subscribe_charging_schedules([this, &var_ocpp_schedule](json schedule) { | ||
+ EVLOG_info << "Received OCPP charging schedule update: " << schedule; | ||
std::scoped_lock lock(ocpp_data_mutex); | ||
this->ocpp_charging_schedule = schedule; | ||
this->ocpp_charging_schedule_updated = true; | ||
diff --git a/modules/OCPP201/OCPP201.cpp b/modules/OCPP201/OCPP201.cpp | ||
index 83f2324b..8eb7900f 100644 | ||
--- a/ext/source/modules/OCPP201/OCPP201.cpp | ||
+++ b/ext/source/modules/OCPP201/OCPP201.cpp | ||
@@ -1181,6 +1181,9 @@ void OCPP201::process_deauthorized(const int32_t evse_id, const int32_t connecto | ||
} | ||
|
||
void OCPP201::publish_charging_schedules(const std::vector<ocpp::v201::CompositeSchedule>& composite_schedules) { | ||
+ EVLOG_info << "About to publish composite charging schedules: "; | ||
+ for (ocpp::v201::CompositeSchedule cs: composite_schedules) | ||
+ EVLOG_info << cs << '\n'; | ||
const auto everest_schedules = conversions::to_everest_charging_schedules(composite_schedules); | ||
this->p_ocpp_generic->publish_charging_schedules(everest_schedules); | ||
} |
Oops, something went wrong.