Skip to content
s5gPublic

About

IOT sensor simulation, REST backend, Android dashboard

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

rIOT

IOT sensor simulation, REST backend, Android dashboard

URLs

URL Convention

  • (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

Datastore Architecture

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())

About

IOT sensor simulation, REST backend, Android dashboard

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages