WebAPI server to control Patlite NH Series
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public/css
views
.gitignore
Dockerfile
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
app.rb
config.ru
docker-compose.yml
pry_r.rb

README.md

patlite-api

WebAPI server to control Patlite NH Series
Supports Mackerel Webhook

  1. Requirement
  1. Installation

  2. clone this repository

  3. $ cd patlite-api

  4. $ bundle

  5. Edit Patlite host and ruser in app.rb 1. set :patlite_host, "EDIT_HERE" 2. set :patlite_ruser, "EDIT_HERE" 3.protected!("EDIT_HERE", "EDIT_HERE")` if you want to use Webhook of Mackerel

  6. Run bundle exec rackup

  7. How to use?

  8. Read API Document (Access to /)

  9. Set Webhook to http://USER:PASSWORD@HOST_IP/webhook in Mackerel

  10. Lisence MIT