Rai Posted April 5 Share Posted April 5 (edited) Hi, I'm trying to run first scripts on a PM Mini 3G (Firmware: 1.2.2). let i = -5; print ("Start"); while (i < 11){ print (i); i = i + 1; } print ("Stop"); Console shows: shos_rpc_inst.c:230 script.putcode via WS_in 192.168.2.21:52392 17:05:39 5 17:05:40 6 17:05:40 7 17:05:40 8 17:05:40 9 17:05:40 10 17:05:40 Stop 17:05:40 shelly_user_script.:342 JS RAM stat: after user code: 98144 after: 97148, used: 996 17:05:40 shelly_notification:163 Status change of script:4: {"id":4,"running":true} 17:05:40 shos_rpc_inst.c:230 script.stop via WS_in 192.168.2.21:52392 17:05:48 shelly_notification:163 Status change of script:4: {"id":4,"running":false} 17:05:48 Is there anybody, who can explain me please, why "Start" isn't shown in console and why the counter-output in console only starts at +5 and not at -5? Changing <let i = 0> don't change output. Edited April 5 by Rai Quote Link to comment Share on other sites More sharing options...
Moderators terae Posted April 6 Moderators Share Posted April 6 I can confirm, same happens. Some amount of debug log just disappears somewhere after running that? Quote shellypmminig3-ecda3bc11990 171 106298.662 1 2|shos_rpc_inst.c:230 script.putcode via WS_in 10.10.0.114:63348 shellypmminig3-ecda3bc11990 172 106298.783 1 /|5 shellypmminig3-ecda3bc11990 173 106298.784 1 /|6 shellypmminig3-ecda3bc11990 174 106298.784 1 /|7 shellypmminig3-ecda3bc11990 175 106298.785 1 /|8 shellypmminig3-ecda3bc11990 176 106298.785 1 /|9 shellypmminig3-ecda3bc11990 177 106298.785 1 /|10 shellypmminig3-ecda3bc11990 178 106298.785 1 /|Stop shellypmminig3-ecda3bc11990 179 106298.786 1 2|shelly_user_script.:342 JS RAM stat: after user code: 152064 after: 151260, used: 804 shellypmminig3-ecda3bc11990 180 106298.798 1 2|shelly_notification:163 Status change of script:1: {"id":1,"running":true} Same with UDP log etc... Quote Link to comment Share on other sites More sharing options...
Rai Posted April 10 Author Share Posted April 10 Thanks for checking. I hope that the problem will be solved soon. Quote Link to comment Share on other sites More sharing options...
xnd Posted April 11 Share Posted April 11 (edited) I can confirm the same behavior (on Shelly Plus Plug S, also on Shelly Pro 3EM) also with and without ECO mode. Shelly Plus Plug S: Firmware ID: 20240228-070935/1.2.3-gbd3eceb Web build ID: 240213111718-ce341dc8-HEAD Edited April 11 by xnd Quote Link to comment Share on other sites More sharing options...
xnd Posted April 17 Share Posted April 17 (edited) same issue also on new beta firmware 1.3.0-beta1 higher resolution image: https://imgur.com/a/rTAS573 There were 2 runs of script. In first run, last command was enabled (line 7): console.log('end'); in second run, last command was disabled (commented): //console.log('end'); in both runs we got only last 7 logs. ECO mode was disabled. Regardless of use console.log or print command - the same behavior in both cases. Edited April 17 by xnd Quote Link to comment Share on other sites More sharing options...
Rai Posted May 15 Author Share Posted May 15 After updating Firmware at 1.3.1 the behavior didn't chached. Quote Link to comment Share on other sites More sharing options...
Hummelchen Posted May 15 Share Posted May 15 @Rai I couldn't believe it and did some tests. Now I am sure that this is a bug and therefore you should open a ticket. Support link below: https://support.shelly.cloud/en/support/home Quote Link to comment Share on other sites More sharing options...
Rai Posted May 22 Author Share Posted May 22 Vom Support kam: "Das von Ihnen gemeldete Problem ist unseren Entwicklern bekannt. Kann aber leider nicht behoben werden, da die Größe des Puffers für die Ergebnismeldungen begrenzt ist und dieser mit dieser Schleife überfüllt wird. Eine entsprechende Information wird in Kürze auch unserer Dokumentation hinzugefügt." Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.