I am facing a challenge where I need to update the indicator in the user interface based on real-time data. The requirement is that if there has been no data received in the last 30 seconds, the indicator should turn red. However, if data is received within 30 seconds, it should be green. It's important to note that the data comes in sequentially for each curveName.
Despite trying $timeout and $interval, I have not been able to solve this problem. Any assistance or guidance would be highly appreciated.