I write the driver for Wetternetz Sachsen, and I have to upload some temperature differences there.
And I wonder what is the intended way to convert those differences from one unit to another.
The template for a restful service driver says that I have to put code to read or calculate additional values into the "get_record" function, where the archive unit system is used. The conversion to the target unit system I have to put into the "format_url" function.
Temperatures and temperature differences are converted in a different way because of the offset between the units.
But I found no "group_temperaturediff" or "group_temperaturerate" unit group, that could cover that.
Because I did not know I put the code to read the start and end temperature of the given interval into the "get_record" function. No difference is calculated there. In "format_url" function first the data record is converted into the target unit system and then the temperature difference is calculated.
Shall I do so or is there a better way?