Skip to content

leonvogt/sensor_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensor Dashboard

View performance data on Skylight View performance data on Skylight

Sensor Dashboard is a web application that allows users to view sensor data from a variety of sources.
The application is built using Ruby on Rails.
There is also a mobile app in development.

Data model

The idea is to have devices that have sensors attached to them. Therefore a device can have multiple sensors that collect data and send it to the server. Each sensor has a type (like temperature, humidity, pressure, etc.) and can define a chart type (line, bar, etc.).

Installation

  1. Install the dependencies:
bundle install
yarn install
  1. Create the database:
rails db:create
rails db:migrate
rails db:seed (optional)
  1. Make sure redis is installed and running on your system.
redis-server --daemonize yes

To start the webserver, sidekiq, yarn watch and tailwind watch run:

bin/dev

Sensor Measurement Types

The following sensor measurement types are currently supported:

  • Temperature
  • Humidity
  • Pressure
  • CO2
  • VOC
  • Altitude
  • Gas
  • Light
  • Sound
  • Vibration
  • Ethanol
  • pH
  • EC (Conductivity)
  • Hz (General frequency)

API

External API

Sensor Dashboard provides an public API to send sensor data to the server.
After creating a device you can create an Access Token, which is used to authenticate the request.

Internal API

For the Turbo Native mobile app there is an internal API, which is used to get things like the PathConfiguration.