Hey guys,
i’m trying to change a value in my config.json via api.
I’m using pimatic-watchdog-unix. Woks good so far. But i make an complete backup of my SD card once a week. This takes about 2 hours. Before i start the backup my backupscript stops pimatic. Every 30 minutes the watchdog plugin checks if pimatic is still running. So it will start pimatic during my backup process. To avoid this i’m trying to disable the plugin during the backup. I tried the follwing to disabe the plugin:
curl -X POST http://localhost:8080/api/config --user “user:pass” --data ‘{“config”:{plugins":[{“plugin”:“watchdog-unix”,“processEnabled”:false,“httpURL”:“http://127.0.0.1:8080/",“httpEnabled”:true,“watchdogCycleTime”:1800,"active”:true}]}}’
But pimatic gives me the answer: {“success”:false,“message”:“expected param: config”}
Any ideas what is wrong?
Regards daice