Helionyx

v0.3.0
io.github.Jayzilva/helionyx Checked 2 days ago Published 1 month ago

Size hybrid solar PV, wind, battery, diesel and grid systems: hourly simulation, NPC ranking.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_site

Register a site (location, time zone and country pack). Returns site_id.

ParameterTypeDescription
latitude *numberWGS84 decimal degrees
longitude *numberWGS84 decimal degrees
name *string
country_packstring
elevation_m
timezoneIANA zone; default from the country pack

fetch_resource

Get one year of hourly GHI, temperature and wind for a site, aligned to local civil time. Returns summary statistics only; the hourly series is available as a resource.

ParameterTypeDescription
site_id *string
fill_long_gapsboolean
sourcestring
yearinteger

import_timeseries

Import a measured load or resource series from CSV (one year, 15/30/60-minute resolution), or extend at least four weeks of measured load to a full year.

ParameterTypeDescription
kind *string
site_id *string
base_resource_idResource dataset to copy other variables from
csv_textCSV content; header encodes the unit, e.g. load_kw
extend_partialbooleanLoad only: extend 4+ weeks of timestamped data to a full year (partly synthetic)
file_pathPath inside the Helionyx workspace
height_mAnemometer height for wind data
monthly_kwh
resolution_mininteger

synthesize_load

Build an 8,760-hour load from pack archetypes, optionally calibrated to monthly bills.

ParameterTypeDescription
components *arrayArchetypes with a count, annual_kwh or peak_kw, e.g. [{archetype: 'hotel', count: 60}]
site_id *string
monthly_kwh12 monthly kWh values (January–December), e.g. from bills, to calibrate the profile
seedinteger
variability

list_tariffs

Browse the tariff pack (utility, category, effective dates, export schemes).

ParameterTypeDescription
as_of
category
country_packstring
utility

get_tariff

Show a tariff's charge structure, TOU periods, export schemes, provenance and staleness warnings.

ParameterTypeDescription
tariff_id *stringRevision ID (lk.ceb.H2@2025-01-01) or category ID (lk.ceb.H2)
as_of
country_packstring

compute_bill

Monthly and annual bill for a load with no system (baseline), or for import/export series.

ParameterTypeDescription
tariff_id *string
country_packstring
demand_peak_factornumber
export_id
export_schemestring
import_id
load_id

list_components

Browse the component library: technical parameters, costs, currency, cost year and source.

ParameterTypeDescription
country_packstring
query
type

create_scenario

Combine site, loads, resource, grid/tariff, components and search space into a scenario. Unset fields take pack defaults; call validate_scenario next to see them.

validate_scenario

Check a scenario: errors block a run, warnings do not; assumptions list every value with its origin (user, pack_default or system_default), source and date.

ParameterTypeDescription
scenario_id *string

run_optimization

Start an asynchronous run that simulates every candidate for 8,760 hours and ranks feasible ones. Returns job_id and run_id; poll get_job_status, then call get_results.

ParameterTypeDescription
scenario_id *string
keep_timeseries_top_n
max_evaluationsintegerHeuristic budget
solverstringnative = full enumeration; heuristic = seeded pattern search for large spaces; reopt / microgridspy / sama = external cross-check solvers
sort_bystring
wait_secondsnumber0 returns immediately; up to 20 waits and streams progress notifications

get_job_status

Poll a job: state (queued, running, completed, failed, cancelled, interrupted), progress %, ETA, run_id.

ParameterTypeDescription
job_id *string
wait_secondsnumber

cancel_job

Cancel a queued or running job.

ParameterTypeDescription
job_id *string

get_results

Ranked feasible designs with sizes and key metrics, the base case, provenance and disclaimer. The full table is the resource hnx://runs/{run_id}/results.csv.

ParameterTypeDescription
run_id *string
filtersBounds on sizes or metrics, e.g. {"bess_kwh": {"max": 200}}
sort_by
top_ninteger

get_pareto_front

Designs on the Pareto front of NPC, annual CO2 and capacity shortage, including designs that break a constraint (flagged), to show cost versus emissions versus reliability trade-offs.

ParameterTypeDescription
run_id *string
max_pointsinteger

explain_run

Structured facts about one design: NPC breakdown and shares, top cost drivers, binding constraints, dispatch statistics, differences from the next design or base case, and the most uncertain inputs.

ParameterTypeDescription
run_id *string
compare_tostring
rankinteger0 = base case

get_monthly_summary

Twelve months of energy flows and, for grid-connected runs, the bill before and after.

ParameterTypeDescription
run_id *string
rankinteger

run_sensitivity

Re-optimise the scenario for each value (or each pair of values in a two-variable grid) and compute NPC elasticities. Returns job_id and batch_id; then call get_sensitivity_results.

ParameterTypeDescription
scenario_id *string
variables *arrayOne variable (sweep) or two (grid): dotted scenario path and values, e.g. {path: 'components.bess.overrides.capital_per_unit', values: [60000, 80000, 100000]}
solverstring
wait_secondsnumber

get_sensitivity_results

Optimal design for each sweep value and the NPC elasticity at the base point.

ParameterTypeDescription
batch_id *string

compare_runs

Side-by-side sizes and key metrics of several runs (e.g. native vs REopt), with differences.

ParameterTypeDescription
run_ids *array
rankinteger

export_homer_csv

Write HOMER-importable load and resource series (8,760 rows) plus a parameter sheet.

ParameterTypeDescription
run_id
scenario_id

export_report

Write a client report as Markdown or Excel: scenario, assumptions, top designs, cost breakdown, monthly table, sensitivities, provenance and disclaimer.

ParameterTypeDescription
run_id *string
formatstring