OpenSprinkler Forums OpenSprinkler Unified Firmware Enable/disable program through API Reply To: Enable/disable program through API



Hello Ray,

I have tried to use the change program (/cp) API to enable or disable an existing program. Unfortunately, it does not work as described. The error returned is {“result”:16} Data Missing (e.g. missing required parameters). Details are:

Get Program Data via http://x.x.x.x/jp?pw=xxx results in:

{“nprogs”:2,”nboards”:1,”mnp”:35,”mnst”:4,”pnsize”:16,”pd”:[[51,1,2,[420,0,0,0],[1800,1800,1800,0,0,0,0,0],”Summer 2019″],[50,1,2,[16474,0,0,0],[600,600,600,0,0,0,0,0],”Hot Summer 2019″]]}

Enable program via http://x.x.x.x/cp?pw=xxx&pid=1&en=1 results in:


App Version: 2.0.3, Firmware: 2.1.8, Hardware version: 3.0 – DC

Any ideas?