Page 1 of 1

Send multiple temperature updates at once

Posted: Monday 04 January 2016 17:00
by Overgaard
I have some sensors that transmit temperature to the receiver once every hour. It the sends the last four measurements (so it will measure every 15 min, but send data only every hour)

The receiver gives me the data via a serial port.

Problem: How to I get the data into Domoticz? If I, for example, get one transmission at 15:00, I need to store the four temperatures for 14:15, 14:30, 14:45, 15:00.

Is there any API to attach the timestamp (the json one does not seem to)?

I guess i could just insert the data into the Sqlite-database, but that means shutting down Domoticz, inserting data and starting Domoticz again. Not good!

Suggestions?

Regards
Jörgen

Re: Send multiple temperature updates at once

Posted: Wednesday 06 January 2016 16:11
by bbqkees
The simple option here would be to send only one value per hour.

Re: Send multiple temperature updates at once

Posted: Thursday 07 January 2016 9:40
by Overgaard
Yes, I am thinking about doing that :D, for now, until I find some way of getting all the values into Domoticz.
I might have a look at the source code of Domoticz and see if I can add this ability.