-
-
Notifications
You must be signed in to change notification settings - Fork 0
Nowcast System
Kanfei's nowcast feature generates short-range, hyper-local weather guidance using your station's observations combined with external weather data and AI analysis.
Kanfei supports two nowcast modes, controlled by the nowcast_mode config key:
Runs the nowcast engine on your Kanfei host. Requires the kanfei-nowcast add-on package.
- Full data collection (radar, NWS alerts, nearby stations)
- Knowledge base with verification and self-improvement
- All nowcast API endpoints available
Connects to the Kanfei Nowcast SaaS service. Set nowcast_remote_url to the service endpoint and nowcast_remote_api_key to your API key.
- Nowcast results fetched from the hosted service
- Manual generation triggers forwarded to the service
- NWS alerts fetched directly (no remote dependency)
- Quality presets available based on service tier
The nowcast system runs on a configurable cycle (nowcast_interval, default 15 minutes). Each cycle collects available weather context and produces a short-range forecast for your station's location.
Depending on configuration and availability, inputs may include:
- latest local station observations
- forecast guidance
- radar products
- active NWS alerts
- nearby station observations (IEM, Weather Underground, APRS — each toggled separately)
The nowcast system monitors NWS alerts for your location:
- Cycle frequency can increase during active alerts
- Analysis depth escalates for higher-severity scenarios
- New alerts can trigger immediate regeneration
Nowcast supports quality presets that balance cost and analysis depth:
- Economy — lowest cost, suitable for routine weather
- Standard — good balance of cost and quality
- Premium — highest quality analysis
(Local mode only)
- Forecasts are verified after the forecast horizon expires
- The system learns from verification results over time
- Proposed knowledge entries can be reviewed, accepted, or rejected
- Auto-accept timing is configurable (
nowcast_knowledge_auto_accept_hours)
-
GET /api/nowcast— latest nowcast result -
POST /api/nowcast/generate— trigger immediate generation -
GET /api/nowcast/status— service status -
GET /api/nowcast/presets— available quality presets -
GET /api/nowcast/alerts— active NWS alerts for station location
GET /api/nowcast/historyGET /api/nowcast/knowledgePUT /api/nowcast/knowledge/{id}GET /api/nowcast/verificationsGET /api/nowcast/radarGET /api/nowcast/radar/{id}
Main nowcast controls in station_config:
nowcast_enablednowcast_disclaimer_accepted-
nowcast_mode(local/remote) nowcast_remote_url-
nowcast_remote_api_key(API key for remote service authentication) nowcast_modelnowcast_intervalnowcast_horizonnowcast_max_tokensnowcast_radiusnowcast_radar_enablednowcast_nearby_iem_enablednowcast_nearby_wu_enablednowcast_wu_api_keynowcast_nearby_aprs_enabled
Budget/cost related:
usage_budget_monthly_usdusage_budget_auto_pauseusage_budget_pausedanthropic_admin_api_key
- Keep station location accurate; multiple subsystems depend on it.
- Start with conservative settings and observe cost behavior.
- Monitor
/api/usage/statusand/api/usage/localwhen tuning cadence. - Remote mode is ideal for deployments where you want nowcast without managing API keys or additional packages.