IOT sensor simulation, REST backend, Android dashboard
- local URL : "http://192.168.1.108:5000/"
- remote URL : ""https://endless-shadow.herokuapp.com/"
- (GET) '/rIOT/db/create'
creates new table with name sensorFlow
- (POST) '/rIOT/db/sensorFlow'
inserts a row into 'sensorFlow
var houseName = [your house name]
var sensorName = [your sensor name]
var sensorData = [your sensor data]
var sensorType = [0 | 1], {0=event, 1=stream}
- (GET) '/rIOT/db/sensorFlow'
returns sensorData of all rows
- (GET) '/rIOT/db/sensorFlow/sensorNames'
returns a list of all distinct sensornames
- (GET) '/rIOT/db/sensorFlow/:sensorNames'
returns items with sensorname matching :sensorNames
- (GET) '/rIOT/db/sensorFlow/sensorDatas'
returns most recent sensor data (highest id) for all distinct sensors
- (GET) '/rIOT/db/delete'
deletes all rows in sensorData
Using Heroku postgresql database
Table name - 'sensorFlow'
schema - (id SERIAL PRIMARY KEY, homeId VARCHAR(40) not null, sensorName VARCHAR(40) not null, sensorData VARCHAR(40) not null), timeAdded TIMESTAMP DEFAULT now())