Skip to main content
14-Alexandrite
April 5, 2020
Solved

How to log all data periodically?

  • April 5, 2020
  • 6 replies
  • 2270 views

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?

Best answer by eyli

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

6 replies

22-Sapphire I
April 6, 2020

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.

eyli14-AlexandriteAuthor
14-Alexandrite
April 6, 2020

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.

eyli14-AlexandriteAuthor
14-Alexandrite
April 7, 2020

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