Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. DLMS Python. CLOCK Object. Change Time

DLMS Python. CLOCK object. change time

By Robin Niezen, 2 October, 2024
Forums
Gurux.DLMS

Hello,

When I was reading a profile based on date range.
I noticed that the time of my device was several days of?
This probably due to production to installation off-time.

In the director I saw that we can set the time to current time.
But i cannot really figure out which method of the clock object is called.

I want to set the time to current time using the python library. Since my application needs to be able to correct the time.

How could I best implement this feature?

Robin

Profile picture for user Kurumi

Kurumi

1 year 4 months ago

Hi Robin, Update the date…

Hi Robin,

Update the date time and then write it to the meter like this:

clock1 = GXDLMSClock()
clock1.time = datetime.datetime.now()
self.write(clock1, 2)

BR,
Mikko

Robin Niezen

1 year 4 months ago

Hi Mikko, I was making it…

Hi Mikko,

I was making it more difficult than it needs to be.

In the clock item there are all these methods for adjusting time.
But not really one for syncing.

I will work with this one for now.

Regards,

Robin

Profile picture for user Kurumi

Kurumi

1 year 4 months ago

Hi Robin, DLMS is very…

Hi Robin,

DLMS is very complicated protocol and it offers all kinds of features.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
  • Issue with KWH Value Reading Using Gurux DLMS Library.
  • CEWE Prometer 100
  • Kaifa Meter Communication via Android Application
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin