Skip to main content
1-Visitor
October 9, 2019
Question

Logging unchanging property values

  • October 9, 2019
  • 1 reply
  • 1636 views

I am logging through valuestream (influxdb as persistence provider) a temperature profile and its set point. I noticed that, while the actual temperature profile (changing values continuously) is correctly logged and the data is stored, the temperature set point (changing only every minute or so) is logged only when a change in value occurs.

 

I have tried to thick the boxes for "PushType: always pushed" and "Data change type: always", but I have the same issue.

 

I would simply like to log a value every 1 second, as specified in the scan rate, no matter if the value has changed since the previous point or not.

 

Any idea why this could be happening, or how to fix this?

1 reply

5-Regular Member
October 10, 2019

The valueStream only logs data when property changes, and that's how it worked.  Since you have request for logging stable data at fixed time interval, you can use Stream instead.  And it also goes to InfluxDB.

 

leoRW1-VisitorAuthor
1-Visitor
October 10, 2019

I have tried using a remote stream (attached to my value stream in order to establish the InxluxDb as persistence provider) but no success. Data is sent to influx correctly, but still only logged on value change.

5-Regular Member
October 11, 2019

Hi, since you have mentioned that you need to log the unchanged property regularly, so in a Stream, you should use the Timer to trigger the Add...Stream service, or you should use the valuechange event of another property that changes a lot. The Stream should have a datashape that contains both of the properties.