* WIP add Webhook

* fix config html for webhook
add tooltips for webhook

* webhook: fix not enabling webhook

* send webhook as json

* Update ApiKey.md

* webhook: fix only sending last "Number"

* webhook JSON is now closer to the data log in CSV format

* webhook: drop timeStampTimeUTC and switch from timeStamp to lastvalue like lokal csv to fix no timestamp on error

---------

Co-authored-by: CaCO3 <caco3@ruinelli.ch>
This commit is contained in:
Raphael Hehl
2024-08-24 00:05:16 +02:00
committed by GitHub
parent acf669900f
commit c9a3df4eec
14 changed files with 418 additions and 5 deletions

View File

@@ -228,6 +228,14 @@ function ParseConfig() {
ParamAddValue(param, catname, "Measurement", 1, true);
ParamAddValue(param, catname, "Field", 1, true);
var catname = "Webhook";
category[catname] = new Object();
category[catname]["enabled"] = false;
category[catname]["found"] = false;
param[catname] = new Object();
ParamAddValue(param, catname, "Uri");
ParamAddValue(param, catname, "ApiKey");
var catname = "GPIO";
category[catname] = new Object();
category[catname]["enabled"] = false;