csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
791 stars 175 forks source link

Implement Soil API support [Agro] #245

Closed csparpa closed 5 years ago

csparpa commented 6 years ago

Please refer to https://agromonitoring.com/api/current-soil for detail

This API has the support for Polygon API as a prerequisite

Analysis

Soil endpoints

GET soil

Entities

(under the agro10 package) Soil

soil.reference_time  # int (Unix time)
soil.surface_temp    # float
soil.ten_cm_temp     # float
soil.moisture        # float

soil = agro_mgr.soil_data(polygon)