I am running a set of kiosks that each display content from my Django app. Each kiosk pings a url like myurl.com/location=downtown
every minute to see if there are any updates.
My models.py looks something like this. Every time the model is pinged, the last_updated is updated.
class Location(models.Model):
name = models.CharField(max_length=20)
last_update = models.DateTimeField()
Unfortunately, every so often, the browser in the kiosk crashes. What I am looking to do is add to the front of the admin interface, after I log in, a little green or red light to indicate if it has been more than 5 minutes since one of the locations had been updated.
Is this the best way to go about making a heart beat for the application? How do I modify the admin interface to give me the status lights to see if the kiosks are ok?