doerfli / shelly-temp

Webapplication to receive temperature and humidity readings from shelly and show on webpage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shelly-temp

This is a simple ruby on rails webapplication to received URL action event from a Shelly H&T device and display the temperature on a webpage.

Start application

Create and migrate database

bundle exec rake db:create
bundle exec rake db:migrate

Run server

bundle exec rails start

Configuration

Point your shelly to http://<hostname>:<port>/measurements/new

Important Shelly does not support https targets!!!

Once at least one event was sent, open a webbrowser to http://<hostname>:<port>/displays/<deviceid>

Test request

curl "http://localhost:3000/measurements/new?id=device01&temp=21.23&hum=58.34"

About

Webapplication to receive temperature and humidity readings from shelly and show on webpage


Languages

Language:Ruby 71.2%Language:HTML 15.6%Language:JavaScript 7.3%Language:Dockerfile 4.8%Language:SCSS 0.7%Language:Shell 0.3%Language:CSS 0.1%