By SgmUsr , 15 February, 2021 Forums General discussion Hello, I would like to change the deviation highbyte and deviation lowbyte in the Clock.Time attribute. The code i'm using is: clock = GXDLMSClock() clock.time = GXDateTime(datetime.datetime.now()) clock.timeZone = 60 clock.deviation = 60 but what it is creating is <OctetString> <SpecifiedLength>12</SpecifiedLength> <Contents>07E5020F010B091002FFC400</Contents> </OctetString> with FFC4 as deviation. In this field we use 003C. How can I change these fields? Thanks Hi, Hi, Your meter is using UTC time zone and not the DLMS standard time zone. You need to set useUtc2NormalTime for the client. https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock cl = GXDLMSClient() cl.useUtc2NormalTime = True BR, Mikko Thank you, it works fine. Thank you, it works fine. Hi, Hi, The date-time is causing a lot of problems. :-( Some meters expect that ms is not used and some that it is zero. This deviation is also causing problems... BR, Mikko
Hi, Hi, Your meter is using UTC time zone and not the DLMS standard time zone. You need to set useUtc2NormalTime for the client. https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock cl = GXDLMSClient() cl.useUtc2NormalTime = True BR, Mikko
Hi, Hi, The date-time is causing a lot of problems. :-( Some meters expect that ms is not used and some that it is zero. This deviation is also causing problems... BR, Mikko
Hi,
Hi,
Your meter is using UTC time zone and not the DLMS standard time zone. You need to set useUtc2NormalTime for the client.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock
cl = GXDLMSClient()
cl.useUtc2NormalTime = True
BR,
Mikko
Thank you, it works fine.
Thank you,
it works fine.
Hi,
Hi,
The date-time is causing a lot of problems. :-(
Some meters expect that ms is not used and some that it is zero.
This deviation is also causing problems...
BR,
Mikko