mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
* 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>
16 lines
356 B
C++
16 lines
356 B
C++
#ifdef ENABLE_WEBHOOK
|
|
|
|
#pragma once
|
|
#ifndef INTERFACE_WEBHOOK_H
|
|
#define INTERFACE_WEBHOOK_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <functional>
|
|
#include <ClassFlowDefineTypes.h>
|
|
|
|
void WebhookInit(std::string _webhookURI, std::string _apiKey);
|
|
void WebhookPublish(std::vector<NumberPost*>* numbers);
|
|
|
|
#endif //INTERFACE_WEBHOOK_H
|
|
#endif //ENABLE_WEBHOOK
|