Page 1 of 1

Functional question - Implemented: Option for SMASpot device to import old month data (SMASpot month files)

Posted: Thursday 21 October 2021 11:40
by raymond1972
Version: 2021.1
Platform: RPI4 Raspbian GNU/Linux 10 (buster)
Plugin/Hardware: RPI4


Goodmorning,

I have question about the functionality 931 - Implemented: Option for SMASpot device to import old month data (SMASpot month files).
Can you please provide me the action that is executed while clicking the import old data button?

for example it runs command xx with parameter yy

The reason I'm asking is that I would like to call the import old data function in a cronjob script for re-importing data to a domoticz device.

Your help is really appreciated.

Kind Regards,
Raymond

Re: Functional question - Implemented: Option for SMASpot device to import old month data (SMASpot month files)

Posted: Thursday 04 November 2021 21:21
by simat
Hi Raymond,

Its in the main executable, source is https://github.com/domoticz/domoticz/bl ... BFSpot.cpp

Search for void CSBFSpot::ImportOldMonthData()

Not sure if you can call any funtionality from the command line.

I'm going to the have the recompile as I have 10 years of data from a SB4000TL to import, and it looks like its limited to 2 years at the moment.

Best regards

Simon.

Re: Functional question - Implemented: Option for SMASpot device to import old month data (SMASpot month files)

Posted: Thursday 04 November 2021 21:29
by raymond1972
Hi Simon,

I noticed the 2 years limit indeed.
I woud be happy if there is a way to have scheduled import functionality. In that way I am able to correct misreadings in domoticz.