My raspberry has memory leakage, so I want to reboot my raspberry pi if the memory exceeds the 80%, is this possible with dzVents?
I tried this, but this is not working.
Code: Select all
if memory.percentage > 80 then
dz.openURL(
{
url = "http://192.168.1.15:8181/json.htm?type=command¶m=system_reboot",
method = 'POST',
})
end
Code: Select all
2023-06-11 14:30:00.241 Error: Error opening url: http://192.168.1.15:8181/json.htm?type=command¶m=system_reboot