Open codingfabi opened 1 year ago
I realized that the backend also logs the following command to the console output of the container:
0 oil l
1 liquid_gas kg
2 coal kg
3 pellet kg
4 woodchips kg
5 gas m^3
So as far as I can tell, not all combinations of source and unit are working. @redfrexx is there a list of what is working with what so we can adjust the forms.
It would be ideal if the backend returned a data structure like this:
[
{
"type" : "gas",
"units": "m^3"
},
{
"type" : "oil",
"units": ["m^3", "l"]
}
]
When trying to add a heating emission entry, the backend fails with the following error message:
No conversion data is available for this fuel type. Provide consumption in a different unit.
This is the request I'm sending:
I tried a few different fuel types, the result is the same for all. I assume that this is a co2-calculator error @redfrexx?