Open prtkjakhar opened 5 months ago
Maintaining API automation scraping here: https://github.com/BharatSahAIyak/upcar-advisory
Response for this PDF: response.json
Common/Unique fields in first 3 PDFs There is a same pattern in every PDF:
- Introduction: No use for us
- Next 1st week weather forcast
- 8th day - 14th day weather forecast
- General Advisory
- Crop Specific advisories in bullets
References: No use for us
Discrepancies between current schema and PDF information
Main discrepancies lies in weather_details: Previously: Daily weather data in numbers for parameters like min_temp, max_temp, min_rh, max_rh, wind_direction, cloud_cover, etc. Now in upcar we have: Two weeks data in paragraph having:
parsing errors (not exhaustive is fine)
- Values for weather details are hallucinations of GPT. e.g. It is giving values for rh_max even if there is no mention of rh_max in the PDF.
- More detailed advisories in PDF, less advisories coming in response to us.
Current Status:
@rachitavya
[ ] Weather APIs
In these weather API, what information is coming, how is it mapped to location, demographic classification (district/block/city/station)
[ ] Crop Data
@prtkjakhar Can you elaborate on what basis we put the weather data on the bot. On the basis of location ? If yes, then how do we select the parameter from the apis. Do we select district or we need lattitude / longitude ?
I wanted to know about the flow so that we can figure out what to do for missing districts in imd APIs.
cc: @aashutosh-samagra @KDwevedi
@rachitavya if you are talking about the weather data we get inside message then I send lat. long. via socket. If you are talking about weather page then @Amruth-Vamshi has provided a bff api that takes lat. long. and returns weather data.
https://github.com/BharatSahAIyak/upcar-advisory
This repo is updated for:
Will share the API endpoint after deploying.
To do:
station code
is.@ChakshuGautam @aashutosh-samagra @KDwevedi
API response might be unsuitable for weather:
/api/current_wx_api.php
contains 10/75 districts /api/cityweather.php
contains 27/75 districtsShould re-evaluate weather pipeline
blocked on weather APIs being down @aashutosh-samagra @ChakshuGautam
@rachitavya can you point me to the latest JSON which has the weather based crop advisory, i checked one JSON which had too concise information and relevant crops/lines were getting dropped.
@aashutosh-samagra https://github.com/BharatSahAIyak/upcar-advisory/blob/dev/latest.json
Weather APIs are now up @KDwevedi @rachitavya , we can schedule a call to discuss
@aashutosh-samagra https://github.com/BharatSahAIyak/upcar-advisory/blob/dev/latest.json
@rachitavya I checked this JSON only, we can relook at it since the information is too concise and relevant crops/lines are getting dropped.
Managing new tickets on the repo itself
Enhancements in UPCAR weather advisory API -
Description
Buttons of different crops below weather widget which show a modal based advisory for that crop.
Need clarity on how can we show crops to farmers, different crops for each farmer based on region? API for this data? @ChakshuGautam @aashutosh-samagra @Amruth-Vamshi