From 4ccc9f69fd4610ecd4df43de3678d07ef5f1e79f Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Fri, 24 Oct 2025 19:52:50 +0200 Subject: [PATCH] Berry add 'gc_heap' and 'gc_time' to 'tasmota.memory()' (#24054) --- CHANGELOG.md | 1 + ...ry_Sticker.tapp => Wifi_Heap_Sticker.tapp} | Bin 3129 -> 3342 bytes .../extensions/Wifi_Heap_Sticker/autoexec.be | 6 ++++++ .../manifest.json | 6 +++--- .../wifi_heap_sticker.be} | 16 +++++++++++----- .../Wifi_Memory_Sticker/autoexec.be | 6 ------ .../xdrv_52_0_berry_struct.ino | 2 ++ .../xdrv_52_3_berry_tasmota.ino | 7 +++++++ .../tasmota_xdrv_driver/xdrv_52_9_berry.ino | 13 +++++++++---- 9 files changed, 39 insertions(+), 18 deletions(-) rename tasmota/berry/extensions/{Wifi_Memory_Sticker.tapp => Wifi_Heap_Sticker.tapp} (57%) create mode 100644 tasmota/berry/extensions/Wifi_Heap_Sticker/autoexec.be rename tasmota/berry/extensions/{Wifi_Memory_Sticker => Wifi_Heap_Sticker}/manifest.json (59%) rename tasmota/berry/extensions/{Wifi_Memory_Sticker/wifi_memory_sticker.be => Wifi_Heap_Sticker/wifi_heap_sticker.be} (80%) delete mode 100644 tasmota/berry/extensions/Wifi_Memory_Sticker/autoexec.be diff --git a/CHANGELOG.md b/CHANGELOG.md index 770b559fa..c4cfd57a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - Berry `cb.free_cb` for extension manager (#24014) - Berry `light.get()` direct access to values (#24033) - HostedMCU file update using command `HostedLoad |` +- Berry add `gc_heap` and `gc_time` to `tasmota.memory()` ### Breaking Changed diff --git a/tasmota/berry/extensions/Wifi_Memory_Sticker.tapp b/tasmota/berry/extensions/Wifi_Heap_Sticker.tapp similarity index 57% rename from tasmota/berry/extensions/Wifi_Memory_Sticker.tapp rename to tasmota/berry/extensions/Wifi_Heap_Sticker.tapp index aaa5ba624fce56af2602832b620683dd95d1716f..e4854656666c6c532897e758ed361cd74a981732 100644 GIT binary patch delta 901 zcmdlf(I-_O;LXg!#Q*{`XGcUkX)imsf{}p%gt-}H7!pfM@>45Pll78PLqj+jm;<-} z&IktL(h6<{MwTByRV*Svt;z~TxeDQ#X_@gJsfh*g!6li=*{MZ(C5Z(E)(Tab1q!-Z z3c3c^R0IK)V2bM_*^5QC9Ar}l$fjbbO-ZQ;WfSlAvw$Qg7cnYB7_%7zAdHWU5+=8R z-kg~nuxmC40|N+)0KJLLK(K$$0R4J)`|rv2Oz|uruT5UUv;o41Von1yHXmc&%35ER zSfr4i9AA=|o2p=|P?A`jn_rTsmz$cKUsS1~4wX^YXoM=1XO?7uT>um*O3h0L@)Gk>6d)n00P^AF^IR6pZa{OmxK(*k((Ys% zZdFi9oqT{>#tt*OC4jDlfF+G@fhib!H VnIyoQl?`MsGZ6j*(!aPtJOJL1A0+?) delta 654 zcmeB^+9^>V;LXg!#Q*|%GjB#oA8t|I#mK+_!rTlp42h*B`KcAD$$Cktp&^_M%m;L1 zG7bT8X$3a}Bg+q}if z-7E!N157o-P({cx6MLi#QO(gW2brAH;ZiAz)iRiB0?7i!qQ3$$y00}RYJlizYl zvV%ezh$r)ME7?IbDnJ8ONry{8L8&aYs5mn}PsvI_$)Li(&;Se|QYop$$wiq3B~aHsk~6jfX$Z# diff --git a/tasmota/berry/extensions/Wifi_Heap_Sticker/autoexec.be b/tasmota/berry/extensions/Wifi_Heap_Sticker/autoexec.be new file mode 100644 index 000000000..a17629059 --- /dev/null +++ b/tasmota/berry/extensions/Wifi_Heap_Sticker/autoexec.be @@ -0,0 +1,6 @@ +# rm Wifi_Heap_Sticker.tapp; zip -j -0 Wifi_Heap_Sticker.tapp Wifi_Heap_Sticker/autoexec.be Wifi_Heap_Sticker/wifi_heap_sticker.be Wifi_Heap_Sticker/manifest.json +do # embed in `do` so we don't add anything to global namespace + import introspect + var wifi_heap_sticker = introspect.module('wifi_heap_sticker', true) # load module but don't cache + tasmota.add_extension(wifi_heap_sticker) +end diff --git a/tasmota/berry/extensions/Wifi_Memory_Sticker/manifest.json b/tasmota/berry/extensions/Wifi_Heap_Sticker/manifest.json similarity index 59% rename from tasmota/berry/extensions/Wifi_Memory_Sticker/manifest.json rename to tasmota/berry/extensions/Wifi_Heap_Sticker/manifest.json index 1837c8201..846845f31 100644 --- a/tasmota/berry/extensions/Wifi_Memory_Sticker/manifest.json +++ b/tasmota/berry/extensions/Wifi_Heap_Sticker/manifest.json @@ -1,8 +1,8 @@ { - "name": "Wifi Memory Sticker", - "version": "0x19090100", + "name": "Wifi Heap Sticker", + "version": "0x190A0100", "description": "Display top left sticker with Wifi strength and memory heap", "author": "Stephan Hadinger", - "min_tasmota": "0x0F000100", + "min_tasmota": "0x0F010001", "features": "" } \ No newline at end of file diff --git a/tasmota/berry/extensions/Wifi_Memory_Sticker/wifi_memory_sticker.be b/tasmota/berry/extensions/Wifi_Heap_Sticker/wifi_heap_sticker.be similarity index 80% rename from tasmota/berry/extensions/Wifi_Memory_Sticker/wifi_memory_sticker.be rename to tasmota/berry/extensions/Wifi_Heap_Sticker/wifi_heap_sticker.be index ced641b68..baefd8079 100644 --- a/tasmota/berry/extensions/Wifi_Memory_Sticker/wifi_memory_sticker.be +++ b/tasmota/berry/extensions/Wifi_Heap_Sticker/wifi_heap_sticker.be @@ -1,12 +1,12 @@ ####################################################################### -# Wifi Memory Sticker +# Wifi Heap Sticker # # Sticker to show realtime wifi strengh and memory (top left of main page) ################################################################################# -# Wifi_Memory_Sticker +# Wifi_Heap_Sticker ################################################################################# -class Wifi_Memory_Sticker +class Wifi_Heap_Sticker static var HTTP_HEAD_STYLE_WIFI = "