Add schedule sync and schedule-aware playback
This commit is contained in:
@@ -231,6 +231,9 @@ AppConfig parseConfigFromYaml(const std::string& yamlContent) {
|
||||
if (proc_node.hasChild("current_id")) {
|
||||
config.proclamation.current_id = proc_node.getChild("current_id").asString(config.proclamation.current_id);
|
||||
}
|
||||
if (proc_node.hasChild("schedule_active")) {
|
||||
config.proclamation.schedule_active = proc_node.getChild("schedule_active").asBool(config.proclamation.schedule_active);
|
||||
}
|
||||
}
|
||||
|
||||
return config;
|
||||
@@ -256,6 +259,7 @@ std::string serializeConfigToYaml(const AppConfig& config) {
|
||||
ss << " scroll_speed: " << config.proclamation.scroll_speed << "\n";
|
||||
ss << " font_size: " << config.proclamation.font_size << "\n";
|
||||
ss << " current_id: \"" << config.proclamation.current_id << "\"\n";
|
||||
ss << " schedule_active: " << (config.proclamation.schedule_active ? "true" : "false") << "\n";
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user