Should I water the plants?
GET {{wateringEndpoint}}/hygrometer
Overwatering is the number one killer of houseplants. When leaves look brown/yellow/wilting and the soil is wet, you might have overwatered your plants.
This request retrieves a soil moisture level from a hygrometer. An additional check of what day of the week it is will determine whether to skip or run the remainder of the collection.
This request will GET
information from the hygrometer. If you don't have a hygrometer, you can update the code under the Tests tab to only check if the current day is a day to skip watering, or do some additional logic.
If you've set up and deployed your own watering endpoint, enter the value in the Qodex environment. The current value directs this request to an example endpoint that returns a simulated moisture level. The more you water this virtual plant, the more moist the soil will become.
RESPONSES
status: OK
{"moisture":"0.90","success":"true"}