visualapproach / WiFi-remote-for-Bestway-Lay-Z-SPA

Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
GNU General Public License v3.0
297 stars 75 forks source link

Running VERY slow #780

Open allanstevens opened 1 month ago

allanstevens commented 1 month ago

Hardware (please complete the following information):

Software (please complete the following information):

Your message Hi first up, what a wonderful device. Thank you.

It worked perfectly at first, but after a day or so, it started slowing down. For example, heating up would result in long, continuous beeps instead of the normal sound effect. A power cycle temporarily fixed the issue, but now it's happening right from startup. Do you have any ideas on how to troubleshoot this? Thank you.

http://layzspa.local/info/

Stack size: 236 Free Dram Heap: 30776 Min Dram Heap: 28352 Max free Dram block size: 29456

Free Iram Heap: 12104 Max free Iram block size: 12104

Core version: 3.1.2 CPU fq: 160 MHz Cycle count: 1822539755 Free cont stack: 1148 Sketch size: 587296 Free sketch space: 2555904

http://layzspa.local/inputs/

Edges received on pin D1: 2415 Edges received on pin D2: 20231 Edges received on pin D5: 827 Edges received on pin D6: 1 Edges received on pin D4: 1 Edges received on pin D3: 1 Edges received on pin D7: 1 On 6-w pump the highest number is CLK, next is DATA and third is CS. On 4-wires the highest is CIO or DSP TX to ESP.

http://layzspa.local/dir/

bootlog.txt Size: 695624 Bytes remove calib.html.gz Size: 1759 Bytes remove chkupdatefw.html.gz Size: 192 Bytes remove cmdq.json Size: 9 Bytes remove config.html.gz Size: 4625 Bytes remove darkmode.js.gz Size: 562 Bytes remove favicon.ico.gz Size: 2525 Bytes remove favicon.png Size: 2425 Bytes remove filelist.txt Size: 436 Bytes remove function.js.gz Size: 614 Bytes remove furelise.mel Size: 556 Bytes remove hwcfg.json Size: 201 Bytes remove hwconfig.html.gz Size: 3796 Bytes remove hwtest1.jpg Size: 10533 Bytes remove hwtestinfo.html.gz Size: 1521 Bytes remove index.html.gz Size: 6736 Bytes remove index.js.gz Size: 3602 Bytes remove links.html.gz Size: 208 Bytes remove main.css.gz Size: 3088 Bytes remove manifest.json Size: 444 Bytes remove menu.png Size: 223 Bytes remove mqtt.html.gz Size: 2025 Bytes remove mqtt.json Size: 181 Bytes remove popcorn.mel Size: 970 Bytes remove remove.html.gz Size: 1438 Bytes remove resetdaily Size: 88 Bytes remove settings.json Size: 478 Bytes remove states.txt Size: 42 Bytes remove success.html.gz Size: 1329 Bytes remove upload.html.gz Size: 1601 Bytes remove visualapproach.png Size: 2953 Bytes remove webconfig.html.gz Size: 2125 Bytes remove weekender2 Size: 163 Bytes remove weekender Size: 336 Bytes remove wifi.html.gz Size: 2453 Bytes remove

allanstevens commented 1 month ago

It seems to have speeded up again now.

Not sure if it's related, but I did the following things:

Could the above have fixed the issue? I'll post again if it starts to slow again.

Thanks.

visualapproach commented 1 month ago

Hi! Thanks for the kind words. The version you referred to is the core version (arduino framework or esp idf, don't remember). If you look at the bottom of your main page it says firmware: and a date/time. The huge bootlog suggests you have had a lot of reboots. Don't know if the filesize is the direct issue but if you didn't reboot on purpose thousands of times there may be a problem with something.

allanstevens commented 1 month ago

Thanks for you reply,

Still working great and the bootlog didn't grow overnight 🤞🤞

Firmware: 2024-06-10-2016 Model: PRE2021 RSSI: -76

Current bootlog {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"} {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"} {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"} {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"} {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"} {"BOOTINFO":"Software/System restart 2024-07-31 12:03:03"}

visualapproach commented 1 month ago

Oh, I think I know why your bootlog expanded so much. Every time the NTP is reconnected it writes a new line in the file. That's a bug that is fixed in later versions. Along with other improvements. Don't fix things that ain't broken, but you may want to update to latest version. You can click on 'releases' on github to see what's changed.

allanstevens commented 1 month ago

Thank you. I'll update it when I get a minute or two.