Most recent datum
get_latestRetrieve the most recent datum for each source of a SolarNetwork node, including watts and wattHours. Optionally specify a date to include older data.
Instructions
What is the most recent datum for each of a node's sources, and when was it recorded? Values are the device's own property map (e.g. watts, wattHours) passed through as-is — property names are the only unit hints; do not invent units. Sources silent for ~90 days are omitted unless you pass sinceDate to look further back.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>"
},
"name": "get_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | SolarNetwork node ID (public demo node: 108) | |
| sinceDate | No | UTC date to look back to; without it the API only considers the last ~90 days | |
| sourceIds | No | Source IDs to include; omit for all |