Calculator jobs can be started by api. To start a POST request to /api/job/start/
with JSON payload:
{
'zone': 'zone_to_calculate',
'scenario': 'no_iva/no_amr/no_lta/None', # defaults to None
'scenario_on': 'zone_to_apply_scenario_on' # defaults to 'all'
'T_from': 'start_timestamp', # format: %Y-%m-%d %H:%M
'T_to': 'end_timestamp', # format: %Y-%m-%d %H:%M,
'max_bex': {'from': 'zone_from', 'to': 'zone_to'} # this is optional, when not specifying maxbex, minmax NP will be calculated
}
To get a status update and eventually the results send a GET request to /api/job/fill_in_your_job_id/