Fellows, I just figured out, that, in case you want to send a temperuature value of external sensor via API, the syntax of the HTTP Get request must be:
mini-server-ip/set/sensor-ID/temperatur/
with trailing backslash, and not, like documented by controme:
mini-server-ip/set/sensor-ID/temperatur
were “temperatur” needs to have the format [dd.dd] always.
BUT: not all numbers are excepted. The Miniserver only accepts a very strange assortment of numbers in the decimals .dd - which is neither rounding nor truncating the muiltiples of .0625 (1/16 degr per bit of the original Dallas DS…). If a value with any other value in the decimals is sent, the date of the last reading becomes actualised, but not the value of the reading.
These are the number controme listenes to:
.00, .06, .12, .19, .25, .31, .38, .44, .50, .56, .62, .69, .75, .81, .88, .94
with this algorithm you may calculate any float to controme accepted digits:
float temp_coarse= floor(T*2)/2; // T is true measured float temperature value
float temp_fine= T-temp_coarse;
float temp_controme= temp_coarse+ floor(2.0*temp_fine + floor(temp_fine*16) *6.25)/100;
if an other value is sent, the date of the last reading becomes actualised, but not the value of the reading.