command message calsl compute direct,#3127

This commit is contained in:
MichaelDvP
2026-06-21 10:53:10 +02:00
parent f99ca7f013
commit 95f475ab6f
6 changed files with 13 additions and 26 deletions

View File

@@ -472,6 +472,10 @@ void WebSchedulerService::condition() {
}
}
std::string WebSchedulerService::compute_value(const char * value) {
return compute(value);
}
// process any scheduled jobs
void WebSchedulerService::loop() {
// initialize static value on startup
@@ -479,11 +483,6 @@ void WebSchedulerService::loop() {
static uint32_t last_uptime_min = 0;
static uint32_t last_uptime_sec = 0;
if (!raw_value.empty()) { // process a value from system/message command
computed_value = compute(raw_value);
raw_value.clear();
}
// get list of scheduler events and exit if it's empty
if (scheduleItems_->empty()) {
return;

View File

@@ -89,9 +89,7 @@ class WebSchedulerService : public StatefulService<WebScheduler> {
bool onChange(const char * cmd);
std::string get_metrics_prometheus();
std::string raw_value;
std::string computed_value;
std::string compute_value(const char * value);
#if defined(EMSESP_TEST)
void load_test_data();