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.
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.).
- Install the dependencies:
bundle install
yarn install
- Create the database:
rails db:create
rails db:migrate
rails db:seed (optional)
- 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
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)
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.
For the Turbo Native mobile app there is an internal API, which is used to get things like the PathConfiguration.