Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Can I Get a Script In Python To Set The RTC Clock Set ? For a Meter ?

Can i get a script in python to set the RTC clock set ? for a meter ?

By sunil K.P , 19 October, 2023
Forums
General discussion

We failed to set the rtc clock of meter using Gurux UI, may be due to some limitation of ms in timing of the meter ,
Is there is any Gurux python library is available so that i can try using the script?

Also i want to go the all the configuration of meter using Gurux python library, Can you help for the same.

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, I believe that you are…

Hi,

I believe that you are using the clock object to update the clock. Milliseconds are ignored as a default because meters usually do not support it.

You can use a client example to read all values from the meter.
https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.Clien…

BR,
Mikko

sunil K.P

2 years 7 months ago

Hi, But i heard that…

Hi,

But i heard that scheinder meter support ms to write the clock ? is it right , in gurux we did not see any option to pass this ms, so looking for a script

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, The client examples don…

Hi,

The client examples don't use ms, because it is not commonly used. You must modify the source code and set the milliseconds to use them.

BR,
Mikko

sunil K.P

2 years 6 months ago

Hi, Could you please share…

Hi, Could you please share the code in python with an example that would be great.

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi, You can do it like this…

Hi,

You can do it like this using GXDLMSReader.py:

clock1 = GXDLMSClock()
#Update the time.
clock1.time = GXDateTime(datetime.datetime.now())
#Write time for the meter.
self.write(clock1, 2):

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin