Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 679 Bytes
class Status : Module
private EnergyStorage es = null;
public Status(EnergyStorage es)
{ = es;
public override bool parse_arguments(string[] argv)
return true;
public override int execute()
// stdout.printf("Version: %s\n", VERSION);
stdout.printf("Database file: %s\n", es.filename);
var length = es.get_data().length();
stdout.printf("Logged points: %u\n", length);
stdout.printf("Start date: %s\n", es.get_starting_datetime().format("%x %X"));
stdout.printf("Stop date: %s\n", es.get_stopping_datetime().format("%x %X"));
return 0;
Something went wrong with that request. Please try again.