Simple demo app to show how to use sensors to get information about toilet occupancy.
Hardware example uses: magnetic switch - door open/closed magnetometer - door locked/unlocked presence sensor - movement
ProtoIoT example uses: smartphone's' acceleration sensor - door open/closed
hardware - uses hardware with magnetic switch, magnetometer and presence sensor protoIoT - uses protoIoT app and phone's accelerometer sensor
-
clone this repository :)
-
download ProtoIoT
-
create an account on relayr dashboard
-
copy APP ID / OAUTH CLIENT ID & OAUTH CLIENT SECRET to the relayrsdk.properties file in protoIoT module of the project
-
replace DEVICE_ID constant with your ProtoIoT device id from the dashboard