you can write a python script that check the OS API (simple JSON http request) and then send a mail.
With the mail you can send the API-command (just a URL) to stop watering for x minutes.
An other email feature could be a week or month report of the watering time.
x hours watering was sheduled
y hours watering are done