VM211 anyone implemented realtime clock VMA301

Hi @FraDoh,

It might be better to put this in the loop instead of the setup. Otherwise, you’ll have to reboot the EarthListener every Sunday for this code to be effective.
If you place it in the loop, you will need to specify a specific time moment, for example 14:30:25 and add a boolean to set if you have adjusted the time. That boolean should be put to 0 on Monday.

So in essence:

  • check if boolean is 0 & time is sunday, hour is 2, minute is 30, second is 25
    => adjust RTC time (t.min -1)
    => boolean = 1

  • check if boolean is 1 & time is monday
    => boolean = 0

That should work :wink: !
Regards,

VEL342

Hi @VEL342 ,

Indeed need to reboot the EarthListener every Sunday.
It is of course not 1 second, but 1 minute to correct the time in my case.
Thanks for your input!! That should indeed work!
I can even finetune it more, with your proposal.

Hi VELX
so I got myself a DS3231. Sorry I#m not to much into programming (more out of practice). The WPM352 uses i2c by the looks. What and where would be needed to change the code? Perhaps you can help me on? Included the DS3231.h already. So setup and EL4v2 need to be adapted. Can I just take the pinks defined for the DS1302/VMA301?
Cheers