Add support for custom flow alerts in user scripts

This commit is contained in:
emanuele-f 2019-10-11 19:47:37 +02:00
parent 862bc0dddd
commit 2fdc860ed2
11 changed files with 222 additions and 38 deletions

View file

@ -13,11 +13,14 @@ local format_utils = require "format_utils"
local json = require "dkjson"
local alerts_api = require "alerts_api"
local alert_consts = require "alert_consts"
local user_scripts = require "user_scripts"
sendHTTPHeader('application/json')
local status = _GET["status"]
user_scripts.loadCustomPrefs()
local engaged = false
if status == "engaged" then
engaged = true