question

rob-3 avatar image
rob-3 asked

Node Red API Solar Forecast incorrect results with beginning of day +48 issue

When specifying as start 'Beginning of Day' and as end '+48' the following URL is generated/called


{"url":"https://vrmapi.victronenergy.com/v2/installations/xxx/stats?type=custom&attributeCodes[]=vrm_solar_irradiance_fc&type=custom&attributeCodes%5B%5D=vrm_solar_irradiance_fc&interval=hours&start=1717020000&end=1717253999","options":{},"headers":{"X-Authorization":"Token xxx","accept":"application/json","User-Agent":"nrc-vrm-api/0.2.4"}}

start=1717020000 (30 May 2024 00:00:00)
end=1717253999 (1 June 2024 16:59:59)

This is incorrect and results with very strange timestamps or 60+ records

You would expect an end close to 1717192799 (31 May 2024 23:59:59)

Maybe it is related to a issue where the month is changing here to June?



Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
rob-3 avatar image
rob-3 answered ·

It's been a few months.... Any response (from Victron) regarding this would be more then welcome.....

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.