From bf6b2dfcd498f3895f0e1427256816a5278166cd Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sun, 8 Dec 2024 13:36:51 +0100 Subject: [PATCH 1/6] Increased CONFIG_MQTT_BUFFER_SIZE to 4096 See https://github.com/jomjol/AI-on-the-edge-device/issues/3425 --- code/sdkconfig.defaults | 1 + 1 file changed, 1 insertion(+) diff --git a/code/sdkconfig.defaults b/code/sdkconfig.defaults index 0fe530363..f95a2943d 100644 --- a/code/sdkconfig.defaults +++ b/code/sdkconfig.defaults @@ -126,6 +126,7 @@ CONFIG_MQTT_USE_CORE_0=y CONFIG_MQTT_USE_CUSTOM_CONFIG=y #CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS=5000 #CONFIG_MQTT_CUSTOM_OUTBOX=y # -> Use custom outbox in components/jomjol_mqtt/mqtt_outbox.h/cpp. If USE_PSRAM is enabled in there, it will save 10 kBytes of internal RAM. How ever it also leads to memory fragmentation, see https://github.com/jomjol/AI-on-the-edge-device/issues/2200 +CONFIG_MQTT_BUFFER_SIZE= 4096 # See https://github.com/jomjol/AI-on-the-edge-device/issues/3425 CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=n From b152b91cfefbb88ec135175914b76f472a0808f3 Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sun, 8 Dec 2024 14:26:50 +0100 Subject: [PATCH 2/6] Update sdkconfig.defaults --- code/sdkconfig.defaults | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/sdkconfig.defaults b/code/sdkconfig.defaults index f95a2943d..4578a8902 100644 --- a/code/sdkconfig.defaults +++ b/code/sdkconfig.defaults @@ -126,7 +126,8 @@ CONFIG_MQTT_USE_CORE_0=y CONFIG_MQTT_USE_CUSTOM_CONFIG=y #CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS=5000 #CONFIG_MQTT_CUSTOM_OUTBOX=y # -> Use custom outbox in components/jomjol_mqtt/mqtt_outbox.h/cpp. If USE_PSRAM is enabled in there, it will save 10 kBytes of internal RAM. How ever it also leads to memory fragmentation, see https://github.com/jomjol/AI-on-the-edge-device/issues/2200 -CONFIG_MQTT_BUFFER_SIZE= 4096 # See https://github.com/jomjol/AI-on-the-edge-device/issues/3425 +# See https://github.com/jomjol/AI-on-the-edge-device/issues/3425 +CONFIG_MQTT_BUFFER_SIZE=4096 CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=n From 8c5b77f31c9cac9bac982d00527f572aa29502fe Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sun, 8 Dec 2024 14:30:11 +0100 Subject: [PATCH 3/6] Update build.yaml --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ea652db20..8d0f5f8ee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -71,6 +71,9 @@ jobs: #run: echo "Testing... ${{ github.ref_name }}, ${{ steps.vars.outputs.sha_short }}" > ./sd-card/html/version.txt; mkdir -p ./code/.pio/build/esp32cam/; cd ./code/.pio/build/esp32cam/; echo "${{ steps.vars.outputs.sha_short }}" > firmware.bin; cp firmware.bin partitions.bin; cp firmware.bin bootloader.bin # Testing run: cd code; platformio run --environment esp32cam + - name: Show used config + run: cd code; echo "Used config:"; cat sdkconfig.esp32cam + - name: Prepare Web UI (generate tooltip pages and update hashes in all files) run: | rm -rf ./html From dfdeac8ac59b54aef43b951028da86c8272cd54e Mon Sep 17 00:00:00 2001 From: Slider0007 <115730895+Slider0007@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:19:43 +0100 Subject: [PATCH 4/6] fix(mqtt tls): Allow insecure TLS connection (sdkconfig) revert 4096 buffer --- code/sdkconfig.defaults | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdkconfig.defaults b/code/sdkconfig.defaults index 4578a8902..3410596b3 100644 --- a/code/sdkconfig.defaults +++ b/code/sdkconfig.defaults @@ -126,8 +126,8 @@ CONFIG_MQTT_USE_CORE_0=y CONFIG_MQTT_USE_CUSTOM_CONFIG=y #CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS=5000 #CONFIG_MQTT_CUSTOM_OUTBOX=y # -> Use custom outbox in components/jomjol_mqtt/mqtt_outbox.h/cpp. If USE_PSRAM is enabled in there, it will save 10 kBytes of internal RAM. How ever it also leads to memory fragmentation, see https://github.com/jomjol/AI-on-the-edge-device/issues/2200 -# See https://github.com/jomjol/AI-on-the-edge-device/issues/3425 -CONFIG_MQTT_BUFFER_SIZE=4096 +CONFIG_ESP_TLS_INSECURE=y +CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY=y CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=n From 71a9cdc695d2ee820f8699690f1eb5dd13289c0b Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Mon, 9 Dec 2024 07:48:35 +0100 Subject: [PATCH 5/6] Update Changelog.md --- Changelog.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 569048ffc..f422bdffb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,20 @@ +## [16.0.0-RC6] - 2024-x-x + +For a full list of changes see [Full list of changes](https://github.com/jomjol/AI-on-the-edge-device/compare/v15.7.0...v16.0.0) + +#### Known issues +Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues) and +[discussions](https://github.com/jomjol/AI-on-the-edge-device/discussions) before reporting a new issue. + +#### Core Changes +Only changes since RC5 are listed: +- None + +#### Bug Fixes +Only changes since RC5 are listed: +- Fixed MQTT with TSL (#3427) + + ## [16.0.0-RC5] - 2024-12-05 For a full list of changes see [Full list of changes](https://github.com/jomjol/AI-on-the-edge-device/compare/v15.7.0...v16.0.0) @@ -22,7 +39,7 @@ Only changes since RC4 are listed: **:warning: Please check your Homeassistant instance to make sure it is handled correctly!** #### Bug Fixes -Only changes since RC3 are listed: +Only changes since RC4 are listed: - Added fix for ledintensity (#3418) - Added fix for OV2640 brightness contrast saturation (#3417) - Added fix for 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value (#3393) From 63aff2b00bf03c964df56fde8c1fe04e55a247f2 Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Mon, 9 Dec 2024 08:23:52 +0100 Subject: [PATCH 6/6] Update PR links in changelog Using this regex: https://regex101.com/r/ZSac8Q/2 (just insert the changelogs content) --- Changelog.md | 60 ++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Changelog.md b/Changelog.md index f422bdffb..505fe7509 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,7 +12,7 @@ Only changes since RC5 are listed: #### Bug Fixes Only changes since RC5 are listed: -- Fixed MQTT with TSL (#3427) +- [#3427](https://github.com/jomjol/AI-on-the-edge-device/pull/3427) Fixed MQTT with TSL ## [16.0.0-RC5] - 2024-12-05 @@ -25,14 +25,14 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues #### Core Changes Only changes since RC4 are listed: -- Removed `Autostart` parameter and make the flow to be always enabled (#3423) -- Enable `Flow start` menu entry in UI (#3423) -- Updated the Homeassistant Discovery topics (#3332): +- [#3423](https://github.com/jomjol/AI-on-the-edge-device/pull/3423) Removed `Autostart` parameter and make the flow to be always enabled +- [#3423](https://github.com/jomjol/AI-on-the-edge-device/pull/3423) Enable `Flow start` menu entry in UI +- [#3332](https://github.com/jomjol/AI-on-the-edge-device/pull/3332) Updated the Homeassistant Discovery topics : - `raw` has now set the `State Class` to `measurement`. Before it was always set to `""`. - `value` has now only set the `State Class` to `total_increasing` if the parameter `Allow Negative Rates` is **not** set. Else it uses `measurement` since the rate could also be negative. Before it was always set to `total_increasing`. - The `rate_per_time_unit` topic of an **Energy** meter needs a `Device Class`=`power`. For `gas` and `water` it should be `volume_flow_rate`. Before it was always set to `""`. - - Added button for `flow start` (#3415) - - Added support for Domoticz MQTT integration (#3359) + - [#3415](https://github.com/jomjol/AI-on-the-edge-device/pull/3415) Added button for `flow start` + - [#3359](https://github.com/jomjol/AI-on-the-edge-device/pull/3359) Added support for Domoticz MQTT integration - Added Date and time to overview page - Updated submodules and models @@ -40,10 +40,10 @@ Only changes since RC4 are listed: #### Bug Fixes Only changes since RC4 are listed: - - Added fix for ledintensity (#3418) - - Added fix for OV2640 brightness contrast saturation (#3417) - - Added fix for 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value (#3393) - - Addef fix for HA menu entry (#3342) + - [#3418](https://github.com/jomjol/AI-on-the-edge-device/pull/3418) Added fix for ledintensity + - [#3417](https://github.com/jomjol/AI-on-the-edge-device/pull/3417) Added fix for OV2640 brightness contrast saturation + - [#3393](https://github.com/jomjol/AI-on-the-edge-device/pull/3393) Added fix for 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value + - [#3342](https://github.com/jomjol/AI-on-the-edge-device/pull/3342) Added fix for HA menu entry ## [16.0.0-RC4] - 2024-10-06 @@ -56,13 +56,13 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues #### Core Changes Only changes since RC3 are listed: -- Update esp32-camera submodule to `v2.0.13` (#3316) -- Added contributor list (#3317) -- Added files for demo mode (#3315) +- [#3316](https://github.com/jomjol/AI-on-the-edge-device/pull/3316) Update esp32-camera submodule to `v2.0.13` +- [#3317](https://github.com/jomjol/AI-on-the-edge-device/pull/3317) Added contributor list +- [#3315](https://github.com/jomjol/AI-on-the-edge-device/pull/3315) Added files for demo mode #### Bug Fixes Only changes since RC2 are listed: -- Added delay in InitCam (#3313) to fix `Camera not detected` issues +- [#3313](https://github.com/jomjol/AI-on-the-edge-device/pull/3313) Added delay in InitCam to fix `Camera not detected` issues ## [16.0.0-RC3] - 2024-10-05 @@ -79,7 +79,7 @@ Only changes since RC2 are listed: #### Bug Fixes Only changes since RC2 are listed: -- Re-did revertion of TFlite submodule update as certain modules crash with it (#3269) (change was lost) +- [#3269](https://github.com/jomjol/AI-on-the-edge-device/pull/3269) Re-did revertion of TFlite submodule update as certain modules crash with it (change was lost) ## [16.0.0-RC2] - 2024-10-04 @@ -93,13 +93,13 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues #### Core Changes Only changes since RC1 are listed: - Updated parameter documentation pages -- Rename/remove unused parameters (#3291) -- Migrate-cam-parameters (#3288) +- [#3291](https://github.com/jomjol/AI-on-the-edge-device/pull/3291) Rename/remove unused parameters +- [#3288](https://github.com/jomjol/AI-on-the-edge-device/pull/3288) Migrate-cam-parameters #### Bug Fixes Only changes since RC1 are listed: -- Reverted TFlite submodule update as certain modules crash with it (#3269) -- Changed the webhook UploadImg to false (#3279) +- [#3269](https://github.com/jomjol/AI-on-the-edge-device/pull/3269) Reverted TFlite submodule update as certain modules crash with it +- [#3279](https://github.com/jomjol/AI-on-the-edge-device/pull/3279) Changed the webhook UploadImg to false - Changed default value from boolean to numeric value in parameter camDenoise documentation - Updated config page @@ -113,24 +113,24 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues #### Core Changes Those are just the major changes: -- Add support for OV5640 camera (#3063) +- [#3063](https://github.com/jomjol/AI-on-the-edge-device/pull/3063) Add support for OV5640 camera - New tflite-Models -- Homeassistant service discovery: derive node_id when using nested topics (#3088) -- Added Prometheus/OpenMetrics exporter (#3081) -- Added Webhook (#3148, #3163, #3174) -- Add rate threshold parameter (#3195) -- Added a Delay between the WiFi reconnections (#3068) +- [#3088](https://github.com/jomjol/AI-on-the-edge-device/pull/3088) Homeassistant service discovery: derive node_id when using nested topics +- [#3081](https://github.com/jomjol/AI-on-the-edge-device/pull/3081) Added Prometheus/OpenMetrics exporter +- [#3148](https://github.com/jomjol/AI-on-the-edge-device/pull/3148), [#3163](https://github.com/jomjol/AI-on-the-edge-device/pull/3163), [#3174](https://github.com/jomjol/AI-on-the-edge-device/pull/3148), [#3163](https://github.com/jomjol/AI-on-the-edge-device/pull/3163), [#3174](https://github.com/jomjol/AI-on-the-edge-device/pull/3174) Added Webhook +- [#3195](https://github.com/jomjol/AI-on-the-edge-device/pull/3195) Add rate threshold parameter +- [#3068](https://github.com/jomjol/AI-on-the-edge-device/pull/3068) Added a Delay between the WiFi reconnections - Web UI improvements - Various minor changes - Update platformIO to 6.9.0 (Contains ESP IDF 5.3.1) #### Bug Fixes Those are just the major changes: -- Handle crash on corrupted model (#3220) -- Bugfix for boot loop (#3175) -- Bugfix for time stamp (#3180) -- Handle empty prevalue.ini gracefully (#3162) -- Added note about only TLS 1.2 is supported (#3213) +- [#3220](https://github.com/jomjol/AI-on-the-edge-device/pull/3220) Handle crash on corrupted model +- [#3175](https://github.com/jomjol/AI-on-the-edge-device/pull/3175) Bugfix for boot loop +- [#3180](https://github.com/jomjol/AI-on-the-edge-device/pull/3180) Bugfix for time stamp +- [#3162](https://github.com/jomjol/AI-on-the-edge-device/pull/3162) Handle empty prevalue.ini gracefully +- [#3213](https://github.com/jomjol/AI-on-the-edge-device/pull/3213) Added note about only TLS 1.2 is supported ## [15.7.0] - 2024-02-17