Track last access time of a tv on slideshow. So a tv outage can be detected.
Would be nice to know when a TV stops loading a slideshow.. then we would know if a chromecast needs a restart.
Idea.. track last access time of a slideshows by a screenid. https://scinage.uwaterloo.ca/slideshows/view/21/[screenid]/
each tv could use a custom screenid.
have an api call to get info on the screenid
GET https://scinage.uwaterloo.ca/screen/[screenid]/
{
'state': 'alive',
'lastaccess': '2016-11-30T11:51-05:00',
'lastaccess-slideshows': 'slideshows/view/21',
}
Then we could create a scinage widget that that is an icon of a tv.
The widget could take in a {screenid} and run a ajax call to get /screen/{id}
.
If state is alive then tv icon green else red if dead (lastaccess > 20min)... yellow on not found.
Then create a slideshow for admins with the background images of building maps. Place the screen icon widgets around. :) success/