From 15ecf79dc57ae61e4d8ceb2ca7eee5ee4f9b95be Mon Sep 17 00:00:00 2001 From: Rabjerg Date: Sat, 19 Jun 2021 14:07:56 +0200 Subject: [PATCH] Update 'README.MD' --- README.MD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.MD b/README.MD index 033a160..6686101 100644 --- a/README.MD +++ b/README.MD @@ -2,7 +2,7 @@ ### Quickstart -Pull the whole thing with git. +Pull the whole thing with git. ``` git clone https://gitea.rabjerg.de/Rabjerg/grafana_twilio_webhook.git ``` Copy ``` secrets.env.sample ``` to ``` secrets.env ``` and fill it with your twilio credientals and sender/reciever phone number. @@ -17,10 +17,10 @@ now test that everything works by running ``` run.sh ``` Go to your grafana server and select "Alerting" -> "Notifications" -> "Create new notification channel" -Name: "Twilio SMS Webhook" -type: "Webhook" -URL: "http://{server_ip}:5000/grafana_webhook" -HTTP Method: "POST" +Name: "Twilio SMS Webhook" +type: "Webhook" +URL: "http://{server_ip}:5000/grafana_webhook" +HTTP Method: "POST" With the server running, you can now press "test" and should get a test notification per SMS. @@ -32,7 +32,7 @@ copy ``` .etc/systemd/system/twilio_webhook.service ``` to ``` /etc/systemd/syst edit the ``` /etc/systemd/system/twilio_webhook.service ``` Important is that ``` ExecStart= ``` points to the absolute path of ``` run.sh ``` and ``` WorkingDirectory= ``` points to the directory with ``` run.sh ``` -Now do ``` sudo systemctl daemon-reload ``` to load the new unit. +Now do ``` sudo systemctl daemon-reload ``` to load the new unit. and ``` sudo systemctl start twilio_webhook.service --now ``` to start the service. Everything should be set up and running from now on. \ No newline at end of file