-> simulator is an ionic application based on angularjs html and jquery can run on browser and android mobiles. ->able to add new sensor device to the list. -> able to edit individual sensors name,devices,type,value and last modified date to the list. and able store in the database. ->Database: pouchdb,couchDB,couchbase to store data -> It is using pouchdb plugin to connect to the database couchdb database. Able to configure the pouchDB plugin in app.js file and we can access the remote database from the app.js like this.
if(ionic.Platform.isAndroid()) { $pouchDB.sync("http://52.67.20.14:5984/sensornew"); } else { $pouchDB.sync("http://52.67.20.14:5984/sensornew"); }
-> able to replicate data from couchdb to couchbase. -> app.js page contains all the templates configured on it. ie.. list.html,login.html,items.htnkl
-> able to get data from database using value from(key,value) from each attribute
{{value.sensorname}} {{value.sensorType}}Last modified on {{value.date}}