From b5e0d6ee66b40ae1aa53ac3dbed63a96dd9e062f Mon Sep 17 00:00:00 2001 From: jomjol <30766535+jomjol@users.noreply.github.com> Date: Sun, 19 Mar 2023 18:31:01 +0100 Subject: [PATCH] Implement InfluxDBv1 and minor changes (#2211) * Testcase for #2145 and debug-log (#2151) * new models ana-cont-11.0.5, ana-class100-1.5.7, dig-class100-1.6.0 * Testcase for #2145 Added debug log, if allowNegativeRates is handeled * Fix timezone config parser (#2169) * make sure to parse the whole config line * fix crash on empty timezone parameter --------- Co-authored-by: CaCO3 * Enhance ROI pages (#2161) * Check if the ROIs are equidistant. Only if not, untick the checkbox * renaming * Check if the ROIs have same y, dy and dx. If so, tick the sync checkbox * only allow editing space when box is checked * fix sync check * show inner frame on all ROIs * cleanup * Check if the ROIs have same dy and dx. If so, tick the sync checkbox * checkbox position * renaming * renaming * show inner frame and cross hairs on all ROIs * update ROIs on ticking checkboxes * show timezone hint * fix deleting last ROI * cleanup --------- Co-authored-by: CaCO3 * restart timeout on progress, catch error (#2170) * restart timeout on progress, catch error * . --------- Co-authored-by: CaCO3 * BugFix #2167 * Release 15.1 preparations (#2171) * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update changelog * Fix links to PR * Formating * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md * Update Changelog.md --------- Co-authored-by: Slider0007 Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com> * fix typo * Replace relative documentation links with absolute ones pointing to the external documentation (#2180) Co-authored-by: CaCO3 * Sort model files in configuration combobox (#2189) * new models ana-cont-11.0.5, ana-class100-1.5.7, dig-class100-1.6.0 * Testcase for #2145 Added debug log, if allowNegativeRates is handeled * Sort model files in combobox * reboot task - increase stack size (#2201) Avoid stack overflow * Update interface_influxdb.cpp * Update Changelog.md --------- Co-authored-by: Frank Haverland Co-authored-by: CaCO3 Co-authored-by: CaCO3 Co-authored-by: Slider0007 Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com> --- Changelog.md | 31 +++++++++++++++++++ .../jomjol_fileserver_ota/server_ota.cpp | 2 +- .../jomjol_influxdb/interface_influxdb.cpp | 2 +- sd-card/html/edit_config_param.html | 2 +- sd-card/html/readconfigparam.js | 1 + .../generate-param-doc-tooltips.py | 3 ++ 6 files changed, 38 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index de5527b8..00c233e5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,34 @@ +## [unreleased] + +### Update Procedure + +Update Procedure see [online documentation](https://jomjol.github.io/AI-on-the-edge-device-docs/Installation/#update-ota-over-the-air) + +:bangbang: Afterwards you should force-reload the Web Interface (usually Ctrl-F5 will do it)! + +:bangbang: Afterwards you should check your configuration for errors! + +### Changes + +For a full list of changes see [Full list of changes](https://github.com/jomjol/AI-on-the-edge-device/compare/v15.0.3...v15.1.0) + +#### Added + +- n.a. + + +#### Changed + +- n.a. + +#### Fixed + +- [#2203](https://github.com/jomjol/AI-on-the-edge-device/issues/2203) Correct API for pure InfluxDB v1 + +#### Removed + +- n.a. + ## [15.1.0] - 2023-03-12 ### Update Procedure diff --git a/code/components/jomjol_fileserver_ota/server_ota.cpp b/code/components/jomjol_fileserver_ota/server_ota.cpp index 14390925..6763090d 100644 --- a/code/components/jomjol_fileserver_ota/server_ota.cpp +++ b/code/components/jomjol_fileserver_ota/server_ota.cpp @@ -617,7 +617,7 @@ void doReboot() LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Reboot triggered by Software (5s)"); LogFile.WriteToFile(ESP_LOG_WARN, TAG, "Reboot in 5sec"); - BaseType_t xReturned = xTaskCreate(&task_reboot, "task_reboot", configMINIMAL_STACK_SIZE * 3, (void*) true, 10, NULL); + BaseType_t xReturned = xTaskCreate(&task_reboot, "task_reboot", configMINIMAL_STACK_SIZE * 4, (void*) true, 10, NULL); if( xReturned != pdPASS ) { LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "task_reboot not created -> force reboot without killing flow"); diff --git a/code/components/jomjol_influxdb/interface_influxdb.cpp b/code/components/jomjol_influxdb/interface_influxdb.cpp index bc878e84..1e95b16b 100644 --- a/code/components/jomjol_influxdb/interface_influxdb.cpp +++ b/code/components/jomjol_influxdb/interface_influxdb.cpp @@ -189,7 +189,7 @@ void InfluxDBPublish(std::string _key, std::string _content, std::string _timest // use the default retention policy of the database - std::string apiURI = _influxDBURI + "/api/v2/write?bucket=" + _influxDBDatabase + "/"; + std::string apiURI = _influxDBURI + "/write?db=" + _influxDBDatabase + "/"; apiURI.shrink_to_fit(); http_config.url = apiURI.c_str(); diff --git a/sd-card/html/edit_config_param.html b/sd-card/html/edit_config_param.html index 625c8d7f..2c7c883c 100644 --- a/sd-card/html/edit_config_param.html +++ b/sd-card/html/edit_config_param.html @@ -1226,7 +1226,7 @@ textarea { - Automatically Round Start + Automatic Round Start