For now the frequency for real-time update has been set as 2 minutes. It is being achieved by sending an ajax call from the browser to the server after every 2 minutes.
All the changes have been made on the tool also.
str function has been removed where it wasn't required.
@eggpi please review.