cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to log all data periodically?

eyli
14-Alexandrite

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?

ACCEPTED SOLUTION

Accepted Solutions
eyli
14-Alexandrite
(To:eyli)

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

View solution in original post

6 REPLIES 6
PaiChung
22-Sapphire I
(To:eyli)

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.

eyli
14-Alexandrite
(To:PaiChung)

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.

eyli
14-Alexandrite
(To:eyli)

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

eyli
14-Alexandrite
(To:eyli)

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

PaiChung
22-Sapphire I
(To:eyli)

If you control the update rate on the device, you can also set DataChange to 'Always' which means that anytime a data point is pushed it is recorded into the valuestream regardless of value.

It is important to make sure you aren't sending too many updates per second is all.

eyli
14-Alexandrite
(To:PaiChung)

Thanks very much for help. I will do test.

Announcements


Top Tags