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