About cimis-cli
cimis-cli is a command-line tool for querying California Irrigation Management Information System weather data. It serves users who need station observations, ET0 calculations, and irrigation water budgets, with date and field filters plus summary and CSV export commands.
Key features
- 01Find and inspect weather stations
- 02Query daily and hourly observations
- 03Calculate ET0 and water budgets
- 04Summarize data and export CSV
Use cases
- 01Find CIMIS stations near a location
- 02Retrieve weather data for irrigation planning
- 03Calculate a crop-specific water budget
- 04Summarize monthly data or export annual records
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dl-alexandre/ skills --skill cimis-cliAfter installing, type/cimis-cliin Claude Code to confirm it loaded.
Details
From the project READMECIMIS CLI
Query California Irrigation Management Information System (CIMIS) data using the cimis command-line tool.
Prerequisites
cimis --version
cimis auth status
Authentication
- API key from CIMIS
- Environment variable:
CIMIS_API_KEY
Weather Stations
cimis stations list --active
cimis stations get STATION_ID
cimis stations nearby --zip 95354 --radius 50
Weather Data
Daily Data
cimis data daily --station 171 --start 2024-06-01 --end 2024-06-30
cimis data daily --station 171 --days 7 --fields eto,humidity,temp
Hourly Data
cimis data hourly --station 171 --date 2024-06-15
cimis data hourly --station 171 --start 2024-06-01T00:00 --end 2024-06-01T23:59
ET0 & Irrigation
cimis eto --station 171 --start 2024-06-01 --end 2024-06-30 --crop coef
cimis waterbudget --station 171 --crop alfalfa --start 2024-06-01
Export & Analysis
cimis export --station 171 --start 2024-01-01 --end 2024-12-31 --format csv
cimis summary --station 171 --month 6 --year 2024
Agent Best Practices
- Station selection: Use
nearbyfor location-based queries - Date formats: ISO 8601 or YYYY-MM-DD
- Fields filtering: Request only needed fields for faster queries
- Units: Default is metric; use
--imperialfor US units
Comments
Markdown supported