Script crashes with OUT OF MEMORY

  • Hi,

    first of all, my script just should get status information about some cloud based virtual thermostates. 8)

    Because there is an other issue to get the status of just one thermostate, I get the status from all my devices with https://shelly-xx-eu.shelly.cloud/device/all_status . :/

    This works so far, but when I want to parse the JSON data, the script crashes with OUT OF MEMORY. =O

    I found one open issue in the forum, where the provided solution is to reduce the variables. ( see 22849-shelly-script-bricht-bei-json-parse-ab-out-of-memory-was-tun )

    This is not possible for me because I do not use many variables. And there should be enough memory available.

    I get following information before executiong the parse function: "ram_size": 241192, "ram_free": 97352

    The JSON to be parsed is 1422 characters long, this is not an overkill I think...

    So I suggest this is a bug in the parse function.

    Does anyone have a hint for me? :saint:

    Or does anyone know a better solution to get the status from a virtual thermostate with a smaller amount of data?

    Many thanks in advance,

    Schmuckerl