predictor/force_update.bat

23 lines
670 B
Batchfile

@echo off
REM Batch script to force download fresh GRIB data
REM This deletes old cube files and downloads the latest dataset
echo Forcing fresh GRIB data download...
echo.
REM Set environment
set GSN_PREDICTOR_GRIB_DIR=C:\tmp\grib
set GSN_PREDICTOR_GRIB_TTL=72h
REM Delete old cube files to force fresh download
echo Deleting old cube files...
del /Q C:\tmp\grib\*.cube 2>nul
echo.
echo Starting service to download fresh data...
echo This will download from S3 (may take several minutes)
echo Press Ctrl+C once download completes and you see "initial GRIB update complete"
echo.
REM Run the service - it will download fresh data on startup
go run cmd/api/main.go