Take relays consumption in account

This commit is contained in:
2024-09-16 22:27:43 +02:00
parent 79b2ad12d8
commit 20bc71851d
4 changed files with 81 additions and 14 deletions

View File

@ -76,6 +76,14 @@ pub struct AppConfig {
#[arg(short, long, env, default_value = "storage")]
storage: String,
/// The minimal production that must be excluded when selecting relays to turn on
#[arg(short('m'), long, env, default_value_t = -500)]
pub production_margin: i32,
/// Energy refresh operations interval, in seconds
#[arg(short('i'), long, env, default_value_t = 30)]
pub refresh_interval: u64,
/// Consumption backend provider
#[clap(subcommand)]
pub consumption_backend: Option<ConsumptionBackend>,