Time synchronization using Shelly EM and Python script

Hi to all …

I am very new to this forum. I am using Shelly’s EM device to measure the Power. In the local IP of the Shelly device, I am getting the values. And, I am running the Python script in order read the data in the local IP of the Shelly device. But the problem is time is not synchronized on both sides. In Python script it’s printing 3 to 4 values as it is in the local IP, but after some values are mismatching.

Does anyone will help me out with how to synchronize both time.

Thanks in advance.

VASANTH