Asset Tracking Prototype
Version 0.1
First Load Data into BIM Cloud
Then try the Asset Tracking Prototype -Sample Front End App here:
Notes:
The UI of this App is kept simple with minimum formatting. The priority is given the reading, updating, adding, and deleting of assets (component data) to demonstrate the functioning of the APIs in BIM-cloud.com. The App currently makes the web service requests for every page it loads and displays the API requests on the lower right of the page. Depending on the use case for front end apps, they could use AngularJS or other frameworks to improve the efficiency of data requests.
Features:
- The App retrieves data and displays at the bottom right the RESTful API requests made for the transactions. The focus is to demonstrate how the data can be displayed (GET), added and updated (POST), and deleted (DELETE) using those APIs in JSON format.
- Submit the UUID created by the Cloud Server to display the overall facility data. Since it is not intended that overall facility data is updated with this App, the UI displays all attributes associated with the facility (from COBie worksheets Facility, Floor, Document, and Attribute) in a raw format.
- From the right select either “view all assets” or “add new asset”. Viewing all assets returns a complete list and displays the API requests made to display the page.
- Select the unique mark on the left to view the data associated with the asset or select to “Edit” or “Delete” an asset directly from the list.
- Selecting a link to a space shows all assets within that single space. Alternatively, one can switch between the list of all assets to individual spaces with the pulldown at the top right.
Framework/Code:
The sample Front End App uses the free open source web2py framework with a few simple pages of code to display, delete, create, and edit facility data through HTTP exchanges with the BIM-Cloud APIs.
Source code for the Front-End App can be downloaded from here: Download Source Code
The zipped archive has the following structure:
Copy the full inventory_list folder into “applications” and modify routes.py accordingly for the Front-End App
License:
MIT License
Copyright (c) 2016 Onuma, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.