Skip to main content
Version: Next

sample-config

Basic Sample Configuration File

{
"server": {
"useTls": true,
"keyStorePath": "path/to/keystore.jks",
"privateKeyAlias": "alias",
"keyStorePassword": "password",
"privateKeyPassword": "password",
"webClientHost": "*",
"port": 7654,
"webRoot": "static"
},
"ewb": {
"host": "localhost",
"port": 9000,
"protocol": "HTTP",
"auth": {
"issuer": "https://zepben.au.auth0.com",
"audience": "https://test-audience/",
"clientId": "abcdefg",
"clientSecret": "hijklmnop"
}
},
"ui": {
"defaultScreen": "MAP",
"studiesEnabled": true,
"profilesTrendDisplayEnabled": true,
"profilesSubstationLoadAnalysisEnabled": false,
"powerFactoryExporterEnabled": true,
"powerFactoryExporterOptions": {
"enableInternalNodes": true,
"enableLVFeeders": true
},
"sincalExporterEnabled": true,
"sincalExporterOptions": {
"enableInternalNodes": false,
"enableLVFeeders": false
},
"networkTracingEnabled": true,
"networkOpportunityAnalysisEnabled": true,
"devFeaturesEnabled": false
},
"database": {
"url": "jdbc:h2:mem:mem;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=TRUE;",
"driver": "org.h2.Driver"
},
"auth": {
"method": "auth0",
"trustedIssuers": ["https://zepben.au.auth0.com"],
"audience": "https://evolve-gateway/"
},
"powerFactoryModel": {
"type": "http",
"host": "localhost",
"port": 8089,
"modelsDir": "modelsDir"
},
"hostingCapacity": {
"service": {
"type": "http",
"host": "localhost",
"port": 9191
},
"resultDatabase": {
"url": "jdbc:postgresql:results",
"driver": "org.postgresql.Driver"
}
},
"airflow": {
"host": "localhost",
"port": 8080,
"protocol": "HTTP",
"username": "ewb_airflow_user",
"password": "air_password123"
},
"metricsDatabase": {
"url": "jdbc:h2:mem:mem2;DB_CLOSE_DELAY=-1"
}
}

Sample Config to define defaultMapLayerColors, themes and defaultTheme for ui

{
"ui": {
"defaultMapLayerColors": {
"voltage": [
{
"range": [
0,
0
],
"color": "#FFFFFF"
},
{
"range": [
1,
240
],
"color": "rgba(251,176,121,0.667)"
},
{
"range": [
241,
1000
],
"color": "rgba(251,176,121,1)"
},
{
"range": [
6300,
6400
],
"color": "#75157e"
},
{
"range": [
6600,
6600
],
"color": "#FF00FF"
},
{
"range": [
11000,
11000
],
"color": "#A31DAF"
},
{
"range": [
12500,
12800
],
"color": "#10A0B0"
},
{
"range": [
19000,
19200
],
"color": "#00CCFF"
},
{
"range": [
21000,
24000
],
"color": "#2f6896"
},
{
"range": [
33000,
33000
],
"color": "#367bb4"
},
{
"range": [
66000,
66000
],
"color": "#FE9833"
},
{
"range": [
132000,
132000
],
"color": "#9FA050"
},
{
"range": [
220000,
220000
],
"color": "#1FF0EA"
},
{
"range": [
275000,
275000
],
"color": "#FFD1D1"
},
{
"range": [
500000,
500000
],
"color": "#99FF99"
}
],
"phases": {
"A": "#FF0000",
"B": "#FFFF00",
"C": "#0000FF",
"AB": "#FF8800",
"AC": "#7c4cad",
"BC": "#00BB00",
"ABC": "#000000",
"AN": "#BB0000",
"BN": "#BBBB00",
"CN": "#0000BB",
"ABN": "#BB6600",
"ACN": "#73479b",
"BCN": "#008800",
"ABCN": "#444444",
"X": "#bb6666",
"Y": "#444488",
"YX": "#AAAAAA",
"XN": "#AAAAAA",
"YN": "#AAAAAA",
"YXN": "#AAAAAA",
"NONE": "#CCCCCC"
},
"pen": [
"#8800FF",
"#AAAA00",
"#00AA00",
"#FF00AA",
"#0000AA",
"#AAAAAA",
"#AA0000",
"#00AAFF",
"#AA00AA",
"#CC8800",
"#00AAAA",
"#0000FF",
"#666666",
"#e30707"
],
"offSupply": [
"#FF0000",
"#1e10ff"
],
"partiallyOffSupply": [
"#AA0000",
"#DDDDDD"
],
"missingVoltage": "#EEEEEE",
"highlight": "#00AA00"
},
"themes": [
{
"name": "Streets",
"sourceUrl": "mapbox://styles/zepben/cl6f1rvw1000015qymrkxfopm",
"thumbnailUrl": "images/map/streets.png",
"layerColors": {
"phases": {
"A": "#FF00AA",
"B": "#FFFF00",
"C": "#0110FF",
"AB": "#FF8800",
"AC": "#7c4cad",
"BC": "#00BB00",
"ABC": "#033000",
"AN": "#BB0000",
"BN": "#BBBB00",
"CN": "#0000BB",
"ABN": "#BB6600",
"ACN": "#73479b",
"BCN": "#008800",
"ABCN": "#444444",
"X": "#bb6666",
"Y": "#444488",
"YX": "#AAAAAA",
"XN": "#EEEEEE",
"YN": "#EEEEEE",
"YXN": "#AAAAAA",
"NONE": "#CCCCCC"
},
"missingVoltage": "#ABABAB"
}
},
{
"name": "Light",
"sourceUrl": "mapbox://styles/zepben/ckbszgqxk0ega1ipbfnpu65h6",
"thumbnailUrl": "/images/map/light.png",
"layerColors": {
"voltage": [
{
"range": [
0,
1000
],
"color": "#AA0000"
},
{
"range": [
1000,
10000
],
"color": "#00AA00"
},
{
"range": [
10000,
33000
],
"color": "#0000AA"
},
{
"range": [
33000,
200000
],
"color": "#FFFFFF"
}
]
}
},
{
"name": "Dark",
"sourceUrl": "mapbox://styles/zepben/ckbh6o85q00qs1iqg12v95zbr",
"thumbnailUrl": "/images/map/dark.png",
"layerColors": {
"voltage": [
{
"range": [
0,
1000000
],
"color": "#AA0000"
}
],
"offSupply": [
"#AA0000",
"#0000DD"
]
}
},
{
"name": "Satellite",
"sourceUrl": "mapbox://styles/zepben/ckg7efkm60mul19p757pvgzcy",
"thumbnailUrl": "/images/map/satellite.png",
"layerColors": {
"pen": [
"#AA3300",
"#EEEE00",
"#AA55AA"
]
}
}
],
"defaultTheme": "Streets"
}
}