-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildings interaction mode #27
Comments
|
using "group_1": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 47",
"avg_spec_heat_consumption": 147.10931,
"avg_spec_power_consumption": 33.40084,
"cluster_size": 2,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.009385106,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"environmental_engagement": true,
"environmental_engagement_prior": true,
"energy_source": "Strom",
"cell": ""
}, |
Hi David, I implemented the first two features. For the 4th one, to update $s ausgewählte, could you specify the incoming json structure from root level? What I have in the sampleData.js "data_view_individual_data" at the top. Will the UDP be like this for this feature? """ |
There are two implementations. The relevant one (for the buildings_interaction mode) looks like this: {
"buildings_groups": {
"group_0": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 28",
"avg_spec_heat_consumption": 224.0,
"avg_spec_power_consumption": 19.678693,
"cluster_size": 10.0,
"emissions_graphs": "data/outputs/output_20220915_08-16-27/emissions/CO2_emissions_7.50.png",
"energy_prices_graphs": "data/outputs/output_20220915_08-16-27/energy_prices/energy_prices_7.50.png",
"CO2": 0.0125813315,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"environmental_engagement": false,
"environmental_engagement_prior": false,
"energy_source": "\u00d6l",
"cell": ""
}
],
"connections": 0
},
"group_1": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 40",
"avg_spec_heat_consumption": 196.4097951852,
"avg_spec_power_consumption": 36.5880559259,
"cluster_size": 27.0,
"emissions_graphs": "data/outputs/output_20220915_08-16-27/emissions/CO2_emissions_7.55.png",
"energy_prices_graphs": "data/outputs/output_20220915_08-16-27/energy_prices/energy_prices_7.55.png",
"CO2": 0.0120015825,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"environmental_engagement": true,
"environmental_engagement_prior": true,
"energy_source": "Gas",
"cell": ""
}
],
"connections": 0
},
"group_2": [
""
],
"group_3": [
""
]
}
} The other one, sent right after the simulation, has a wrapper "data_view_individual_data" around it and looks like this: {
"data_view_individual_data": {
"buildings_groups": {
"group_0": {
"buildings": [
{
"address": "Rüsdorfer Straße 28",
"avg_spec_heat_consumption": 224.0,
"avg_spec_power_consumption": 19.678693,
"cluster_size": 10.0,
"emissions_graphs": "data/outputs/output_20220915_08-16-27/emissions/CO2_emissions_7.50.png",
"energy_prices_graphs": "data/outputs/output_20220915_08-16-27/energy_prices/energy_prices_7.50.png",
"CO2": 0.0125813315,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"environmental_engagement": false,
"environmental_engagement_prior": false,
"energy_source": "Öl",
"cell": ""
}
],
"connections": 0
},
"group_1": {
"buildings": [
{
"address": "Rüsdorfer Straße 40",
"avg_spec_heat_consumption": 196.4097951852,
"avg_spec_power_consumption": 36.5880559259,
"cluster_size": 27.0,
"emissions_graphs": "data/outputs/output_20220915_08-16-27/emissions/CO2_emissions_7.55.png",
"energy_prices_graphs": "data/outputs/output_20220915_08-16-27/energy_prices/energy_prices_7.55.png",
"CO2": 0.0120015825,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"environmental_engagement": true,
"environmental_engagement_prior": true,
"energy_source": "Gas",
"cell": ""
}
],
"connections": 0
},
"group_2": [
""
],
"group_3": [
""
]
}
}
} |
I added "slider_handles" as a list containing the selected decisions per group. I think using this one instead of the struct containing "sliders" is better, because otherwise - as with your proposed solution - the underlined text style will be overwritten instantly by the {
"buildings_groups": {
"group_0": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 18",
"avg_spec_heat_consumption": 417.4165075,
"avg_spec_power_consumption": 35.305475,
"cluster_size": 4,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.022635805,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"save_energy": false,
"save_energy_prior": false,
"energy_source": "Gas",
"cell": ""
},
{
"address": "R\u00fcsdorfer Stra\u00dfe 40",
"avg_spec_heat_consumption": 197.379868,
"avg_spec_power_consumption": 36.4716976,
"cluster_size": 25,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.0120015825,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"save_energy": false,
"save_energy_prior": false,
"energy_source": "Gas",
"cell": ""
}
],
"connections": 0,
"slider_handles": [
"connection_to_heat_grid"
]
},
"group_1": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 61",
"avg_spec_heat_consumption": 119.17281,
"avg_spec_power_consumption": 16.1021586364,
"cluster_size": 22,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.006376463,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"save_energy": false,
"save_energy_prior": false,
"energy_source": "Gas",
"cell": ""
}
],
"connections": 0,
"slider_handles": []
},
"group_2": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 47",
"avg_spec_heat_consumption": 147.10931,
"avg_spec_power_consumption": 33.40084,
"cluster_size": 2,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.009385106,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"save_energy": false,
"save_energy_prior": false,
"energy_source": "Strom",
"cell": ""
}
],
"connections": 0,
"slider_handles": []
},
"group_3": {
"buildings": [
{
"address": "R\u00fcsdorfer Stra\u00dfe 16",
"avg_spec_heat_consumption": 344.119725,
"avg_spec_power_consumption": 50.34868,
"cluster_size": 4,
"emissions_graphs": "",
"energy_prices_graphs": "",
"CO2": 0.0191294115,
"connection_to_heat_grid": false,
"connection_to_heat_grid_prior": false,
"refurbished": false,
"refurbished_prior": false,
"save_energy": false,
"save_energy_prior": false,
"energy_source": "Gas",
"cell": ""
}
],
"connections": 0,
"slider_handles": []
}
}
} |
highight selected decsion feature
frontend sends a json string like this:
{"sliders": {"id": "slider0", "handle": "num_connections", "group": -1}}
the slider id does not matter, but the "group" should be used to allocate the handle to the different divs:
within these divs, pick the corresponding item and underline it (de-underline it, when no slider handle or group points to this feature anymore).
more beautifications
environmental_engagement
. please link thsis to the incomingconnection_to_heat_grid
instead.{"mode": "total_data_view", "scenario_energy_prices": 2018, "iteration_round": 0, "active_scenario_handle": "Ref"}
The text was updated successfully, but these errors were encountered: