Changes between Version 6 and Version 7 of CameraControllerspec
- Timestamp:
- 04/04/2020 09:14:32 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CameraControllerspec
v6 v7 1 1 = CPTMS Camera Controller = 2 2 == Specification == 3 [[BR]]See the User Interface Prototype in the Subversion repository: `trunk/webapps/cptms/CameraDisplay.html`[[BR]] 4 Purpose: 5 Display four camera views of current CPTMS highway conditions in a grid layout. 3 [[BR]]See the User Interface Prototype in the Subversion repository: `trunk/webapps/cptms/CameraDisplay.html`[[BR]] Purpose: Display four camera views of current CPTMS highway conditions in a grid layout. 6 4 7 5 [[Image(wiki:CameraControllerspec:CameraDisplayPrototype3.png, 640px)]] 8 6 9 7 Functions; 8 10 9 1. The user selects which of the four displays is to be updated. 11 1. The user selects which route (highway) is to be displayed. The list of routes is 1 5 22 55 57 73 74 91 133 142 241 261 405 605. [[BR]] 12 Once a route is selected, the camera drop down box filters the camera choices to just those on the selected route. 10 1. The user selects which route (highway) is to be displayed. The list of routes is 1 5 22 55 57 73 74 91 133 142 241 261 405 605. [[BR]] Once a route is selected, the camera drop down box filters the camera choices to just those on the selected route. 13 11 1. The users selects a camera. The chosen camera view appears in the selected display. 12 1. Our collection of images is incomplete; not every camera in the gson file has an image. So if the user requests a camera for which we have no image, display the "video unavailable" jpg. 14 13 15 14 Data Sources 15 16 16 1. `cptms/data_layers/cctv_locations_D12.gson` is a static file containing the filename and locationName (among other things) for all the CCTV cameras. For each camera is also has a property "nearVDS" which is the ID of the nearest VDS to that camera. 17 17 1. `cptms/images/CCTV` folder contains all camera images. The route name is the second field of the filename. The traffic speed is the last field in the filename. E.g. `12-005-CCTV-0084-slow.jpg` is camera 84 on route 5 for slow traffic. 18 18 1. `webapps/dynamicdata/highway_status.json` is updated every 30 seconds with traffic flow. The camera display controller reads this file every 30 seconds. For each camera currently being displayed it looks up the nearest VDS (using the "nearVDS" property). Then, based on the color property of that VDS (lime = freeflow, yellow = slow, red = stopped), it then chooses the corresponding image to display from the `cptms/images` folder. 19 20
