Basically, this will be a copy of the My People plugin but for Rooms instead of humans. My current question / issue is CCTV implementation.
For My People, adding a picture of the person to a control page isn't hard. Create an image for each person and name it "MyPeople+friendlyname.png", put it in .../images/controls/devices folder and you should be able to scroll through faces when you go through your people using "NowShowing".
For My Rooms, I'd like to be a little more dynamic by implementing CCTV (if applicable to that room). You could do the same thing as above for a still image "MyRoom+roomname.png" and use that for the device's "roomname" state.
For a dynamic image, this may work, but it would have to be outside of the plugin because there are too many variables to overcome (how to access every type of camera, etc.). Also, as I'm typing this, I see that it will work, but I can't wrap my head around a way to limit the amount of traffic it would create (with your camera, with python scripts, etc.)
"Trigger A" would fire whenever the state (room name) of the "NowShowing" device changes
- Condition = state.roomname = RoomA
"Script A"... Whatever mechanism you have for obtaining a snapshot of your camera, a script (Script A) would have to be added to pull the snapshot and save as a png file in the same /images/controls/devices folder. "MyRoomCCTV+RoomA.png"
Change a variable "MyRoomCCTV" to "http://URLofIndigoServer/images/controls/devices/MyRoomCCTV+RoomA.png"
You now should be able to use Jay's variable URL Redirect plugin to put the image on a control page using the URL: "http://URLofIndogoServer/varialbe_url_redirect/redirect?name=MyRoomCCTV" as a refreshing image sized however you want it. This wouldn't be "live", but it would be a recent image.
Since this would only get one snapshot at a time, it would refresh whenever you forward or reverse through rooms. If you change the script to continually run and continually update the "RoomA.png" then you would also need scripts to shut them off. While they are running, like if you advance to a different "NowShowing" page and walk away, that script will be running continually (which I'm pretty sure will booger up something)
I would like peoples thoughts on this and what kind of device states would be good for a My Room plugin.