Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sendtohttp] Add Open-Meteo events + JSON event #5207

Open
wants to merge 33 commits into
base: mega
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
514a140
Update Networking.cpp
chromoxdor Jan 2, 2025
a553671
a tiny bit better formatting
chromoxdor Jan 2, 2025
86812a1
changes for OPENMETEO_EVENT and THINGSPEAK_EVENT
chromoxdor Jan 2, 2025
3bc16d8
Update Networking.cpp
chromoxdor Jan 2, 2025
aaa938e
combining two functions
chromoxdor Jan 2, 2025
94ec6b0
wrong use of concat times two :)
chromoxdor Jan 2, 2025
7325ed8
update
chromoxdor Jan 3, 2025
2bc5810
Update Networking.cpp
chromoxdor Jan 3, 2025
0f5b5f2
put thingspeak and openmeteo events into extra file
chromoxdor Jan 3, 2025
fc6ccaa
added inverter event
chromoxdor Jan 3, 2025
0ca2d75
fix for not building on minimal_core_274_esp8266...
chromoxdor Jan 3, 2025
daafc7d
#ifdef to #if. m(
chromoxdor Jan 3, 2025
56e2acf
more universal json event approach
chromoxdor Jan 4, 2025
171cbeb
Update HTTPResponseParser.h
chromoxdor Jan 4, 2025
6d2215b
added variable decimals for floating point numbers
chromoxdor Jan 4, 2025
fe8786f
some changes to the json-event
chromoxdor Jan 4, 2025
1500f3b
made the eventQueue even more complex :P
chromoxdor Jan 4, 2025
0bf7b66
minor changes
chromoxdor Jan 4, 2025
c7a23c2
moved variable to cpp file
chromoxdor Jan 4, 2025
2b571a4
updates
chromoxdor Jan 6, 2025
6083741
Update HTTPResponseParser.cpp
chromoxdor Jan 6, 2025
89a029f
Update define_plugin_sets.h
chromoxdor Jan 6, 2025
57569ca
Update HTTPResponseParser.cpp
chromoxdor Jan 6, 2025
bd6523a
Update HTTPResponseParser.cpp
chromoxdor Jan 6, 2025
229037b
Merge branch 'letscontrolit:mega' into openmeteo-events
chromoxdor Jan 15, 2025
768d4c2
documentation and slight reduction of code
chromoxdor Jan 15, 2025
68dba8c
Update define_plugin_sets.h
chromoxdor Jan 15, 2025
72b49bb
corrected json examples
chromoxdor Jan 15, 2025
390974f
Docs: Formatting and linking
chromoxdor Jan 16, 2025
35ed195
Merge branch 'mega' into openmeteo-events
chromoxdor Jan 21, 2025
40f83cc
fixed typo
chromoxdor Jan 21, 2025
97aab88
Merge branch 'openmeteo-events' of https://github.com/chromoxdor/ESPE…
chromoxdor Jan 21, 2025
b751e27
Merge branch 'mega' into openmeteo-events
chromoxdor Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Custom-sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#define FEATURE_RULES_EASY_COLOR_CODE 1 // Use code highlighting, autocompletion and command suggestions in Rules
#define FEATURE_ESPEASY_P2P 1 // (1/0) enables the ESP Easy P2P protocol
#define FEATURE_ARDUINO_OTA 1 // enables the Arduino OTA capabilities
#define FEATURE_THINGSPEAK_EVENT 1 // generate an event when requesting last value of a field in thingspeak via SendToHTTP(e.g. sendToHTTP,api.thingspeak.com,80,/channels/1667332/fields/5/last)
#define FEATURE_THINGSPEAK_EVENT 0 // Generates an event when requesting last value of a field in thingspeak via SendToHTTP(e.g. sendToHTTP,api.thingspeak.com,80,/channels/1667332/fields/5/last)
#define FEATURE_OPENMETEO_EVENT 0 // Generates an event with the response of a open-meteo request (https://open-meteo.com/en/docs)
#define FEATURE_JSON_EVENT 0 // Generates an event with the values of a JSON repsonse of an HTTP call. Keys are stored in json.keys one key per line (e.g.: Body.Data.DAY_ENERGY.Values.1)
// #define FEATURE_SD 1 // Enable SD card support
// #define FEATURE_DOWNLOAD 1 // Enable downloading a file from an url

Expand Down
26 changes: 22 additions & 4 deletions src/src/CustomBuild/define_plugin_sets.h
Original file line number Diff line number Diff line change
Expand Up @@ -3620,14 +3620,32 @@ To create/register a plugin, you have to :
*/


#ifndef FEATURE_THINGSPEAK_EVENT
#ifdef LIMIT_BUILD_SIZE
#define FEATURE_THINGSPEAK_EVENT 0
#ifndef FEATURE_THINGSPEAK_EVENT
#if defined(PLUGIN_BUILD_MAX_ESP32)
#define FEATURE_THINGSPEAK_EVENT 1
#else
#define FEATURE_THINGSPEAK_EVENT 0
#endif
#endif

#ifndef FEATURE_OPENMETEO_EVENT
#if defined(PLUGIN_BUILD_MAX_ESP32)
#define FEATURE_OPENMETEO_EVENT 1
#else
#define FEATURE_THINGSPEAK_EVENT 1
#define FEATURE_OPENMETEO_EVENT 0
#endif
#endif

#ifndef FEATURE_JSON_EVENT
#define FEATURE_JSON_EVENT 0
#endif

#if FEATURE_THINGSPEAK_EVENT || FEATURE_OPENMETEO_EVENT || FEATURE_JSON_EVENT
#define RESPONSE_PARSER_SUPPORT 1
#else
#define RESPONSE_PARSER_SUPPORT 0
#endif

#if !(defined(SOC_DAC_SUPPORTED) && SOC_DAC_SUPPORTED)
#ifdef USES_P152
#undef USES_P152
Expand Down
Loading
Loading