I have a production Django application that is being used to view a dashboard of sensor data. Currently my sensors are sending their values to my database via Django REST framework. So I am passing the sensor values in JSON format using python requests, which then saves a record each time it receives the data.
This works well when I am sending sensor data every 30 minutes, however I want to see certain sensor data as real-time as reasonable.
Would it be practical to keep my existing setup, but just post the sensor data every 2 seconds, and use AJAX to update the page every 2 seconds? Or should I be taking a completely different approach here. Any help is appreciated!