FarmStack SatSure connector will provide the Bengal gram data of
Maharastra(Solapur
,Osmanabad, Ahmadnagar ) and Karnataka(Gadag) districts in .csv files from the SatSure Sparta.
Architecture flow diagram https://app.diagrams.net/#G1W2QKB4UN-4hU3Elwk7vbxpr0tFRnzUSn
Expected List of files:
This link have the expected files from SatSure .
Challenges:
Yield estimation is a premium dataset which is not available in SatSure API.
Crop acreage, rainfall, harvest and temp data are good to proceed.
API’s to fetch data:
As we already know the country, districts, date range and crop(gram) we can keep the country, state, districts, date_range and crop id’s will be static.
To fetch sub-districts “/product/country/{country_id}/state/{state_id}/district/{district_id}/sub-district”.
Input parameters country_id, state_id and district_id
To fetch village id “/product/country/{country_id}/state/{state_id}/district/{district_id}/sub-district/{subdistrict_id}/village“.
Input parameters country_id, state_id, district_id and village_id
To fetch product(Acreage, Rainfall and temp) details API: “/product/{product_id}“.
Input parameters region_id, level, product_id, start_date and end_date.
For Acreage data region_id(Village id), level(6) and product_id(1).
For Rainfall data region_id(sub-district id), level(4) and product_id(9).
For temp data region_id(sub-district id), level(4) and product_id(10).
For Harvest data region_id(village_id), level(6), crop_id(4) and product_id(5)
Data ranges we have the access:
start_date : 2021-10-01
ens_date: 2022-03-31
Connectors:
Provider connector
Consumer connector
Consumer connector
Consumer connector will be running on consumer infra, There will be timeRepeat route which will trigger provider core route for every 7 days to fetch data.
The data which is provided by the provider core will be loaded to google sheets or make it available to user through consumer custom(python) application.
Provider Connector
Digital Green/ SatSure operated on AWS T2.micro instance. Custom python application will make the API calls to fetch the data from SatSure DB.
Whenever provider core gets the request for data it will trigger the custom application route.
The custom application will make the API calls to SatSure DB and combines the data as required in .csv formate and send back to provider core .
0 Comments