How can we help?


zone/simulate returns 500

Comments

2 comments

  • Avatar
    RainMachine Nicholas

    Hi,

    Thank you for the wonderful Python API.

    I updated the docs with the proper body. What you need to send it's the zone properties (that you get from GET /zone/properties):

     

     {
    "ETcoef": 1,
    "type": 2,
    "internet": true,
    "savings": 50,
    "slope": 1,
    "sun": 1,
    "soil": 1,
    "group_id": 1,
    "history": true,
    "waterSense": {
    "fieldCapacity": 0.0,
    "rootDepth": 0,
    "appEfficiency": 0.0,
    "isTallPlant": 0,
    "permWilting": 0.0,
    "maxAllowedDepletion": 0.0,
    "precipitationRate": 0.0,
    "allowedSurfaceAcc": 0.0,
    "referenceTime": 661,
    "detailedMonthsKc": [
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0
    ],
    "soilIntakeRate": 0.0
    }
    }
    0
    Comment actions Permalink
  • Avatar
    bachya

    Hi Nicholas – that worked! Thanks so much for the follow up.

    0
    Comment actions Permalink

Please sign in to leave a comment.