New algorithm inspired by bresenham line algorithm
removed IMRelay_datetime, and moved relay indicator function to jqueryknob file