WebAPI server to control Patlite NH Series
Supports Mackerel Webhook
- Requirement
- Ruby
- bundler gem
-
Installation
-
clone this repository
-
$ cd patlite-api -
$ bundle -
Edit Patlite
hostandruserinapp.rb1.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 -
Run
bundle exec rackup -
How to use?
-
Read API Document (Access to
/) -
Set Webhook to
http://USER:PASSWORD@HOST_IP/webhookin Mackerel -
Lisence MIT