Fraunhofer-FIT-DIEN / iec104-python

A Python module to simulate SCADA and RTU communication over protocol 60870-5-104 to research ICT behavior in power grids.

Home Page:https://iec104-python.readthedocs.io/python/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending timestamps not in UTC

ArtTron22 opened this issue · comments

Hello!

I am trying to adjust the time of a timestamp when sending point data, and I would like to know how to do so. When sending data about a point with the type "type=c 104.Type.M_ME_TF_1", I want the timestamp to be in the local time zone of the server, rather than the UTC time. For example, the server's local time zone is Europe/Istanbul. Could you please help me with this?

Thank you for your attention.

Hi there,
since the protocol isn't timezone aware it would be better to use UTC time and instead format the time into a desired timezone in the presentation layer.

But it should be possible to manually set a timestamp for a measurement value via the set method.
point.set(value=123, timestamp_ms=...)
I tried the last option and found a bug there that will be fixed in the upcoming release 1.8.0 within the next days .

Thank you for your answer. And when do you plan to release version 1.8.0, approximately?