Slider0007
7fa0b87e6e
Deinit components before reboot ( #1704 )
...
* Deinit all components before reboot
* Update
* Update
2022-12-27 20:29:33 +01:00
CaCO3
603e968ec7
Improve NTP handling ( #1676 )
...
* fix special case where number is named "default" (keep all topics in top level instead of in a sub-group)
* re-implemented SNTP usage, added way to disable NTP client, added timezone table
* minor fixes
Co-authored-by: CaCO3 <caco@ruinelli.ch >
2022-12-23 22:45:25 +01:00
Slider0007
f6bf7e38c7
Trigger a flow start by REST API or MQTT ( #1648 )
...
* Trigger flow start by Rest API
* Increase handlers
* Update
* Update
* Update
* Change max handlers
* Add debug message
* Trigger flow start by MQTT
* Update
* Remove unused function
* Remove handler_doflow + routines
* Cleanup
* MergeCheck
2022-12-21 17:45:32 +01:00
Nicolas Liaudat
fc5fbd648e
#ifndef in *.h + #pragma once ( #1639 )
2022-12-20 06:46:13 +01:00
Nicolas Liaudat
b0726b6c7e
Centralizing the defines ( #1624 )
...
* defines changes
* Finish #define move + #define STBI_ONLY_JPEGsave 2% of Flash
* remove the defines on the old places
* ClassFlowCNNGeneral in define.h
* revert to origin
* fix translation not ready
2022-12-19 21:43:30 +01:00
CaCO3
0d48c526b8
Preparations for next Bugfix Release ( #1615 )
...
* Merge branch 'rolling' (#1559 )
* Fix for securing wlan.ini (#1509 )
* Fix for securing wlan.ini
* Fixing error with ' instead of "
* Changing to errorcode 403
* maybe strcmp instead of regular ==
Co-authored-by: Pär Hedberg <par.hedberg@nordicmedtest.se >
* Update Web-Installer
* solves #1530 (#1531 )
* Refactor JSON (#1518 )
* use correct log level
* corrected logging
* typo
* refactored JSON generagion: removed unused parameters, consolidated into singel function, added "pre"
* Wrapped 'rate' into double quotes, like all other JSON values
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Various corrections (#1519 )
* use correct log level
* corrected logging
* typo
* add release to webinstaller
* changed logs, added INFO log of raw, value, error
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Prevent auto restart on cam framebuffer init error (#1522 )
* use correct log level
* revert autorestart on camera framebuffer init error
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* #1524 - ensure the recognized digit is less than 10 (#1525 )
* fix kernel panic (vector out of range) in getReadoutRawString
* fix key of caches
* fix key of caches
* fix key caches
* fix cache keys
* fix cache keys
* move set variables to top
* debug
* fix key
* testing
* try fix changelog
* test
* Update Changelog.md for release
* Revert "Update Changelog.md for release"
This reverts commit 4f51ec7962 .
* remove testing
* fix release creation
* testing
* Update Changelog.md for release
* test
* Revert "Merge branch 'master' of https://github.com/haverland/AI-on-the-edge-device "
This reverts commit f68695a4c0 , reversing
changes made to a096cf7182 .
* Revert "test"
This reverts commit a096cf7182 .
* revert testing
* #1524 - ensure the result of ZeigerEvalHybridNeu is <10
* Fix late digit transition #1503
Co-authored-by: github-actions <github-actions@github.com >
* fix frozen time in datafile on error (#1534 )
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* log NTP server name (#1497 )
* log NTP server name
* .
* .
* replace calls to /wasserzaehler.html with calls to /value (#1469 )
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Fix cookie usage, use correct http response codes, add 404 page (#1495 )
* replaced some HTTP response code with better matching codes
* add custom 404 page, add log entry for debugging
* fix cookie
* replace non-necessary whitespace
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Don't autofail if NTP server can't be reached during initalization (#1498 )
This fixes an issue with a restricted network without internet access,
where the hardcoded ntp server can't be reached and thus the esp resets,
as it's not able to finish initalization.
* Update Changelog.md
* Update Changelog.md for release
* Fix for securing wlan.ini (#1509 )
* Fix for securing wlan.ini
* Fixing error with ' instead of "
* Changing to errorcode 403
* maybe strcmp instead of regular ==
Co-authored-by: Pär Hedberg <par.hedberg@nordicmedtest.se >
* Update Web-Installer
* solves #1530 (#1531 )
* Refactor JSON (#1518 )
* use correct log level
* corrected logging
* typo
* refactored JSON generagion: removed unused parameters, consolidated into singel function, added "pre"
* Wrapped 'rate' into double quotes, like all other JSON values
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Various corrections (#1519 )
* use correct log level
* corrected logging
* typo
* add release to webinstaller
* changed logs, added INFO log of raw, value, error
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* Prevent auto restart on cam framebuffer init error (#1522 )
* use correct log level
* revert autorestart on camera framebuffer init error
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* #1524 - ensure the recognized digit is less than 10 (#1525 )
* fix kernel panic (vector out of range) in getReadoutRawString
* fix key of caches
* fix key of caches
* fix key caches
* fix cache keys
* fix cache keys
* move set variables to top
* debug
* fix key
* testing
* try fix changelog
* test
* Update Changelog.md for release
* Revert "Update Changelog.md for release"
This reverts commit 4f51ec7962 .
* remove testing
* fix release creation
* testing
* Update Changelog.md for release
* test
* Revert "Merge branch 'master' of https://github.com/haverland/AI-on-the-edge-device "
This reverts commit f68695a4c0 , reversing
changes made to a096cf7182 .
* Revert "test"
This reverts commit a096cf7182 .
* revert testing
* #1524 - ensure the result of ZeigerEvalHybridNeu is <10
* Fix late digit transition #1503
Co-authored-by: github-actions <github-actions@github.com >
* only use sntp_getservername() after init sntp
* set default NTP server on dnew installations
Co-authored-by: CaCO3 <caco@ruinelli.ch >
Co-authored-by: Ralf Rachinger <git@ralfrachinger.de >
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com >
Co-authored-by: github-actions <github-actions@github.com >
Co-authored-by: parhedberg <par.hedberg@gmail.com >
Co-authored-by: Pär Hedberg <par.hedberg@nordicmedtest.se >
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com >
Co-authored-by: Frank Haverland <fspapaping@googlemail.com >
* Renamed variables and added debug log (#1537 )
* add debug logs
* renamed variables
* renamed TAGs, added flow status logging
* .
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch >
* replaced printf usage in LogFile.WriteToFile()
* ENABLE_MQTT c++ macro definition (#1546 )
* macro
* 2
* 2
* delete jomjol_mqtt from CMakeLists
* mqtt macro
* final
* ENABLE_INFLUXDB c++ macro definition (#1547 )
* macro
* 2
* 2
* delete jomjol_mqtt from CMakeLists
* mqtt macro
* final
* ENABLE_INFLUXDB c++ macro definition
* Update Changelog.md
Co-authored-by: parhedberg <par.hedberg@gmail.com >
Co-authored-by: Pär Hedberg <par.hedberg@nordicmedtest.se >
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com >
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com >
Co-authored-by: CaCO3 <caco@ruinelli.ch >
Co-authored-by: Frank Haverland <fspapaping@googlemail.com >
Co-authored-by: github-actions <github-actions@github.com >
Co-authored-by: Ralf Rachinger <git@ralfrachinger.de >
Co-authored-by: Nicolas Liaudat <nliaudat@users.noreply.github.com >
* Update Changelog.md for release
Co-authored-by: parhedberg <par.hedberg@gmail.com >
Co-authored-by: Pär Hedberg <par.hedberg@nordicmedtest.se >
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com >
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com >
Co-authored-by: CaCO3 <caco@ruinelli.ch >
Co-authored-by: Frank Haverland <fspapaping@googlemail.com >
Co-authored-by: github-actions <github-actions@github.com >
Co-authored-by: Ralf Rachinger <git@ralfrachinger.de >
Co-authored-by: Nicolas Liaudat <nliaudat@users.noreply.github.com >
2022-12-18 11:19:37 +01:00
Slider0007
b85e3b11a9
Streamlined MQTT interlock when not activated & interlock MQTT when WIFI is not connected ( #1556 )
...
* streamlined mqtt interlock when disabled
* Disconnect mqtt client before reboot
* Interlock MQTT with WIFI
* Update
* loglevel to DEBUG
* Update
* mqtt msg id incremental
* new ENABLE_MQTT includes
* Loglevel to DEBUG
* Loglevel
* Update interface_mqtt.cpp
2022-12-12 08:09:04 +01:00
Nicolas Liaudat
286915b647
ENABLE_MQTT c++ macro definition ( #1546 )
...
* macro
* 2
* 2
* delete jomjol_mqtt from CMakeLists
* mqtt macro
* final
2022-12-11 16:04:56 +01:00
Christopher Fenner
88bdcc9365
solves #1530 ( #1531 )
2022-12-09 14:32:58 +01:00
CaCO3
e87b91f6eb
MQTT improvements ( #1487 )
...
* removed no longer used code
* updated logs
* increased heap memory. this most likely was the reason that the MQTT init failed, see https://github.com/jomjol/AI-on-the-edge-device/issues/1455#issuecomment-1336450501
Co-authored-by: CaCO3 <caco@ruinelli.ch >
2022-12-05 06:55:08 +01:00
CaCO3
16d0758ea3
remove redundant log text ("5 minutes delay" gets loged further down already. ( #1480 )
...
Co-authored-by: CaCO3 <caco@ruinelli.ch >
2022-12-04 15:43:44 +01:00
jomjol
a122b37c81
Quick Fix for MQTT Init Problem
2022-12-04 15:12:20 +01:00
Slider0007
85905a7045
Improve MQTT connection handling ( #1462 )
...
* modify mqtt init at startup + after disconnection
* mqtt_init only when not initialized
* Minor udapte
* Apply suggestions from code review
Co-authored-by: CaCO3 <caco3@ruinelli.ch >
* Correct typo
Co-authored-by: CaCO3 <caco3@ruinelli.ch >
2022-12-03 19:10:44 +01:00
Slider0007
a8b9acf170
Disable heap logs by default ( #1464 )
...
* disabale heap logs by default
* Cleanup log (INFO->DEBUG)
2022-12-02 17:00:31 +01:00
CaCO3
7e997889aa
add MQTT status topic ( #1438 )
2022-11-30 20:26:11 +01:00
CaCO3
8be7beab9a
Add the timezone to the time output fomat ( #1435 )
...
* Add the timezone to the time output fomat, see https://github.com/jomjol/AI-on-the-edge-device/issues/1428
* use correct device class for timestamp
2022-11-30 20:25:03 +01:00
CaCO3
2b0e0f7d4e
MQTT improvements ( #1302 )
...
* Update server_mqtt.cpp
* Update server_mqtt.cpp
* skipp all MQTT publishing until the next round if an error occures
* improve logging
* only use group for uid and topic if there is more than one number
* .
* .
2022-11-09 18:25:24 +01:00
CaCO3
d1e7ef1fce
Add tag to logfile write ( #1287 )
...
* HTML: implement data viewer
* Correct CSV error
* Improve OTA
* Use consistent Log TAG syntax, name TAG variable the same in every file.
* .
* .
* .
* .
* .
* Update server_tflite.cpp
* Correct CSV error
* Improve OTA
* Use consistent Log TAG syntax, name TAG variable the same in every file.
* .
* .
* .
* .
* .
* Update server_tflite.cpp
* .
* .
* .
* .
* .
* .
* .
* .
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com >
2022-11-06 08:13:53 +01:00
CaCO3
3e082ed06e
Enhance homeassistant discovery (V5) ( #1275 )
...
* manual re-creation of #1246
* removed non-working approach to get interval
* postpone the MQTT service start until the ClassFlowControll::ReadParameter() gets called
* Increase the max_uri_handlers to 35 (was 30)
* removed newlines in logs
* added parameter to UI
* Register handler to re-start MQTT Discovery
* fix param
2022-11-05 19:32:58 +01:00
jomjol
7e26744e2e
Revert "Revert "System instable""
...
This reverts commit 1d9ef7e634 .
2022-11-04 21:59:22 +01:00
CaCO3
1d9ef7e634
Revert "System instable"
...
This reverts commit cb84074981339d44266a1a999a7567a722af11f4.
Cleanup REST API (#1255 )
* Replaced URIs:
- value.html => value
- statusflow.html => statusflow
- cputemp.html => cputemp
- rssi.html => rssi
- statusflow.html => statusflow
Removed URLs:
- wasserzaehler.html
* keep legacy API
* .
* .
* .
* .
* .
* .
* updated links
Remove ErrorMessage
Fix various warnings which become fatal with later gcc versons in esp-idf 5.x (#1268 )
- we cannot use partial initialisation of structs in C++ files (copied from example C files initially it seems)
- IRAM_ATTR uses a COUNTER, do not use the attribute on the implementation
- provide missing copy implementations for Rgb and Hsv
- one no longer can |= on volatile variables; use = | instead
- fix project and header includes
- avoid redefining BLINK_GPIO
- Remove defined but unused variables
- Fix printf formats
- Add missing case statement (HTTP_EVENT_REDIRECT)
- RMT needs to be updated to new interface (CONFIG_RMT_SUPPRESS_DEPRECATE_WARN is on currently; see https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/api-reference/peripherals/rmt.html )
- Adjust tcpip_adpater_* to esp_netif_*
- Use buffered versions of *ntoa* functions for IPv4 addresses and not a static on the stack (also fixes warnings)
- Whatever I missed
Correct spelling of "Hostname" (#1270 )
Correct sdkonfig
Increase max handler due to new handlers
Revert "Cleanup REST API (#1255 )"
This reverts commit f3e73ec64a .
Revert "Increase max handler due to new handlers"
This reverts commit cbd63ad4bd .
System instable
Revert "Revert "Cleanup REST API (#1255 )""
This reverts commit 2793c761413ffb987ab6a75da372e00e9f2f2cbd.
Co-Authored-By: Bjoern A. Zeeb <patch@zabbadoz.net >
2022-11-04 21:59:01 +01:00
CaCO3
fc24db7d59
truncate log MQTT contents when they are too long and remove all newline characters in logfile writes
2022-10-28 23:42:04 +02:00
CaCO3
45084bab70
Merge branch 'rolling' into add-homeassistant-discovery2
2022-10-27 23:43:41 +02:00
CaCO3
af8b7d6824
.
2022-10-27 22:26:56 +02:00
CaCO3
bfc7c2b8b7
.
2022-10-27 19:06:47 +02:00
CaCO3
08f90de683
.
2022-10-27 19:05:00 +02:00
CaCO3
32748e3182
.
2022-10-27 13:13:23 +02:00
CaCO3
7a280bc7c6
added callback on connected
2022-10-27 12:18:23 +02:00
CaCO3
f4ae688527
refactored check if logfile is enabled. error messages always get logged now
2022-10-27 10:44:28 +02:00
CaCO3
ca45d0a278
.
2022-10-27 10:03:05 +02:00
CaCO3
8f66fcf2a6
.
2022-10-27 01:12:53 +02:00
CaCO3
30549ac5af
refactored MQTT
2022-10-27 01:09:09 +02:00
CaCO3
6e58f5eebb
updated log messages
2022-10-26 22:46:01 +02:00
George Ruinelli
1e698440f9
added log level to logfile, adjusted some loglevels
2022-10-22 18:05:08 +02:00
George Ruinelli
4951fc9b80
removed redundant log entries (some now are DEBUG isntread of INFO or ERROR)
2022-10-21 23:19:36 +02:00
jomjol
eb0b932c44
rolling 20221010
2022-10-10 07:09:00 +02:00
jomjol
88a074dfa9
Rolling 20220928
2022-09-28 07:16:56 +02:00
CaCO3
395b471700
added return codes. Try to publish. If it fails, run MQTT init and publish again. Increased Keep Alive timeout to make sure it is greater than the flow interval
2022-09-04 17:55:22 +02:00
jomjol
90f204b833
Rolling 20220903
2022-09-03 10:52:48 +02:00
CaCO3
3f58086aa1
Re-init MQTT if it failed last time, added log messages
2022-09-03 00:09:50 +02:00
jomjol
0e90bcb2ef
Rolling 20220320
2022-03-20 21:36:44 +01:00
jomjol
567dc74cd7
Rolling 20220123
2022-01-23 19:47:34 +01:00
jomjol
e79c86c7b6
v10.2.0
2022-01-14 20:18:24 +01:00
jomjol
8dd3a92671
Rolling 20220103
2022-01-03 17:32:01 +01:00
Zwer2k
a44e0d81cc
gpio handler work
2021-07-10 12:36:13 +02:00
Zwer2k
7b8f10a14e
work on GPIO handler
...
bigfix: memory leak in GetJPGStream
2021-06-25 01:19:23 +02:00
jomjol
528a4435a9
Rolling 20210520
2021-05-20 21:58:37 +02:00
jomjol
58eb0b1292
rolling 20210517
2021-05-17 19:35:38 +02:00
jomjol
ae116981ef
MQTT: LWT
2020-12-30 10:35:50 +01:00
jomjol
becb886ab7
Update digital CNN, bug fixing
2020-12-29 22:27:48 +01:00