Skip to content

jgeorge97/dam-water-level-app-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAM WATER LEVEL APP BACKEND

Telegram Group

Matrix Room

Backend to fetch water level data of Dams in Kerala & Tamil Nadu from KSDMA & AGRISNET.

Since the data in KSDMA is uploaded as a pdf without a uniform naming convention of the file, currently the the URL of the pdf file is passed directly to the enviroment file. If anyone has better idea please raise an issue & we can discuss it.

Enviroment Variables

Variable Description
DAM_WATER_LEVEL_FILE_LOCATION URL of the KSEB dam data pdf file obtained from KSDMA site (https only)
IRRIGATION_DAM_WATER_LEVEL_FILE_LOCATION URL of the irrigation dams data pdf file obtained from KSDMA site (https only)
TN_DATA_URL URL of TN dams data, from AGRISNET

API Routes

Route Description
/dam/getData Returns a JSON containing the status of the KSEB dams
/dam/getIrrigationData Returns a JSON containing the status of the Irrigation dams
/dam/getTNDamData Returns a JSON containing the status of dams in Tamil Nadu

To-do

  • A HTML crawler to fetch the URL's of the PDF files automatically
  • A efficient way to extract entire date & time from the PDF
  • Logic to calculate alert level of the dam
  • Find a better way to get the data preferrably a spreadsheet
  • Fix Malayalam typo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published