Re: z-Way Server stops working
Posted: 16 Jun 2017 06:54
Looks like my watchdog didn't work well as I thought, still somewhere a crash overnight.
originPacketsjson can became large as well.
My system is pretty simple:
I have two z-wave aeotec multisensor 6.
I have additional process that queries every 60 seconds from z-way-server by using these from IP: 127.0.0.1:8083
const char *baseSidQuery = "curl --connect-timeout 10 --max-time 600 -d '{\"password\":\"%s\",\"login\":\"%s\",\"rememberme\":false}' -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -X POST %s/ZAutomation/api/v1/login";
const char *baseDevicesQuery = "curl --connect-timeout 10 --max-time 600 -X GET -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -H \"ZWAYSession: %s\" -H \"Cookie: ZWAYSession=%s\" %s/ZAutomation/api/v1/devices";
const char *allDevicesQuery = "curl --connect-timeout 10 --max-time 600 -X GET -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -H \"ZWAYSession: %s\" -H \"Cookie: ZWAYSession=%s\" %s/ZWaveAPI/Run/devices";
Perhaps I should start using earlier version. I think, they were more stable.
originPacketsjson can became large as well.
My system is pretty simple:
I have two z-wave aeotec multisensor 6.
I have additional process that queries every 60 seconds from z-way-server by using these from IP: 127.0.0.1:8083
const char *baseSidQuery = "curl --connect-timeout 10 --max-time 600 -d '{\"password\":\"%s\",\"login\":\"%s\",\"rememberme\":false}' -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -X POST %s/ZAutomation/api/v1/login";
const char *baseDevicesQuery = "curl --connect-timeout 10 --max-time 600 -X GET -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -H \"ZWAYSession: %s\" -H \"Cookie: ZWAYSession=%s\" %s/ZAutomation/api/v1/devices";
const char *allDevicesQuery = "curl --connect-timeout 10 --max-time 600 -X GET -H \"Content-Type: application/json;charset=utf-8\" -H \"Accept: application/json, text/plain, */*\" -H \"ZWAYSession: %s\" -H \"Cookie: ZWAYSession=%s\" %s/ZWaveAPI/Run/devices";
Perhaps I should start using earlier version. I think, they were more stable.