dpsctl nvgrid#
dpsctl nvgrid Usage Guide#
Overview#
dpsctl nvgrid provides DPS NvGrid power management operations for grid integration and load target scheduling.
Usage#
dpsctl nvgrid [command [command options]]
Flags#
Includes global dpsctl options.
--help, -h show help
Commands#
set-load-target- Set a load target for power feedsget-schedule- Get load schedule for specified feeds and time intervalget-current- Get currently active load targets for all feedsget-metadata- Get metadata for all power feedsget-status- Get current system status for all feedsregister-webhook- Register a webhook for power eventsunregister-webhook- Unregister a previously registered webhookhelp,h- Shows a list of commands or help for one command
Examples#
Query Feed Information#
# Get feed metadata
dpsctl nvgrid get-metadata
# Get current status
dpsctl nvgrid get-status
# Get active targets
dpsctl nvgrid get-current
Schedule Load Targets#
# Schedule 6MW target for 1 hour
dpsctl nvgrid set-load-target \
--value=6 \
--unit=megawatt \
--start-time="2025-10-24T15:00:00Z" \
--end-time="2025-10-24T16:00:00Z" \
--best-effort=true
# Schedule with specific correlation ID
dpsctl nvgrid set-load-target \
--value=5 \
--unit=megawatt \
--start-time="2025-10-24T17:00:00Z" \
--end-time="2025-10-24T18:00:00Z" \
--correlation-id="curtailment-001" \
--best-effort=true
# Target specific feeds
dpsctl nvgrid set-load-target \
--value=4.5 \
--unit=megawatt \
--start-time="2025-10-24T15:00:00Z" \
--end-time="2025-10-24T15:30:00Z" \
--feed-tags="feed-a1,feed-a2"
# Reset to default constraint (method 1: using --default)
dpsctl nvgrid set-load-target \
--default \
--start-time="2025-10-24T18:00:00Z" \
--end-time="2025-10-24T20:00:00Z"
# Reset to default constraint (method 2: using --value=0)
dpsctl nvgrid set-load-target \
--value=0 \
--unit=watt \
--start-time="2025-10-24T18:00:00Z" \
--end-time="2025-10-24T20:00:00Z"
Query Schedules#
# Query schedule for next 4 hours
dpsctl nvgrid get-schedule \
--start-time="2025-10-24T14:00:00Z" \
--end-time="2025-10-24T18:00:00Z"
# Query specific feeds
dpsctl nvgrid get-schedule \
--start-time="2025-10-24T14:00:00Z" \
--end-time="2025-10-24T18:00:00Z" \
--feed-tags="feed-a1"
Webhook Management#
# Register webhook for all events
dpsctl nvgrid register-webhook \
--url="https://grid-solution.example.com/webhook"
# Register for specific events
dpsctl nvgrid register-webhook \
--url="https://grid-solution.example.com/webhook" \
--events="start-ramp-down,end-ramp-down"
# Unregister webhook
dpsctl nvgrid unregister-webhook \
--url="https://grid-solution.example.com/webhook"
Common Flags#
set-load-target#
Flag |
Type |
Description |
|---|---|---|
|
float |
Target load value (mutually exclusive with |
|
string |
Unit: |
|
bool |
Reset to default (zero) power constraint (mutually exclusive with |
|
timestamp |
Start time in RFC3339 format (e.g., 2025-10-24T15:00:00Z) |
|
timestamp |
End time in RFC3339 format (e.g., 2025-10-24T16:00:00Z) |
|
string |
Comma-separated feed tags (empty = all feeds) |
|
string |
Tracking ID for this load target (optional) |
|
bool |
Use best-effort strategy (default: true) |
Note: Either --default or --value must be specified. When using --value, --unit is required. Setting --value=0 with any unit is equivalent to using --default (both set the default/zero constraint).
get-schedule#
Flag |
Type |
Description |
|---|---|---|
|
timestamp |
Schedule query start time (ISO 8601) |
|
timestamp |
Schedule query end time (ISO 8601) |
|
string |
Comma-separated feed tags (empty = all) |
register-webhook#
Flag |
Type |
Description |
|---|---|---|
|
string |
Webhook URL (must be whitelisted) |
|
string |
Comma-separated events (empty = all): |
unregister-webhook#
Flag |
Type |
Description |
|---|---|---|
|
string |
Webhook URL to unregister |
Further Reading#
NvGrid Concepts - Understanding NvGrid
Managing NvGrid - Operations guide
Grid Integrator Tutorial - Complete integration with code examples