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 aaa5ba624..e48546566 100644 Binary files a/tasmota/berry/extensions/Wifi_Memory_Sticker.tapp and b/tasmota/berry/extensions/Wifi_Heap_Sticker.tapp differ 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 = "