Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 859 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 859 Bytes

Mimir-backend

How does it work?

You simply clone the repo and start running the server on your network.
Once you have a live server, you can start to create devices within the Mimir app. When you create a device, you will get a device id. Use this device id when reporting sensor data to associate you sensors with your device in Mimir.
alt-text

API DOCS

route/:parameter

HTTP METHOD: {Parameter1, Parameter2, ...}

sensors/:sensor_type

POST: {id, timestamp, sensor_reading}

  • id: Integer representing the device id given to you in Mimir
  • timestamp: UTC string representing the time the sensor reading was recorded
  • sensor_reading: Raw/converted sensor output as a floating point decimal

Setup

Ruby version

Ruby 2.3

Database creation

bin/rake db:migrate