Skip to main content
Apr 5, 2020 12:35 PM UTC
Solved

How to log all data periodically?

I found the thing property is logged to influxDB only when its value is changed. I'd like to let it be logged periodically. How can I do this?

eyliAnswer
Apr 8, 2020 7:43 AM UTC

Finally I decided to make very small changes to the values so that they can be saved.

6 replies

Apr 6, 2020 3:22 PM UTC

Why do you need to log it periodically?

If you needed to you could add extra points of the same value just by using 'math'

We recommend using DataChange so that there is minimal strain on the system.

eyliAuthor
Apr 6, 2020 11:02 PM UTC

The reason is there are not values in a period when I used QueryPropertyHistory to get data and put them on the time series chart since value didn't change in that period.

eyliAuthor
Apr 7, 2020 10:03 AM UTC

Just found the service UpdatePropertyValues can be used to write data to database on demand.