How to populate a RG with current geographic position every 5 seconds?

Hello everyone!
I am trying to populate a Repeating Group with the User’s current geographic position every 5 seconds to then retrieve the the data from the Repeating Group and display it on a map.

Basically I would like to track the User’s current position and this method seems to be the only one that would work with bubble without writing to the database every couple seconds. I am still struggling with getting it to work the way described above.

Did anybody come across this problem and managed to come up with a solution?
Best regards,