question

Oskari Teeri avatar image
Oskari Teeri asked

Cannot get remote port via API

We are trying to get remote port through API, but the API is returning an empty set (as seen in Python):

{u'records': {u'data': {u'152': []},
              u'meta': {u'152': {u'code': u'rs',
                                 u'description': u'Remote support port',
                                 u'formatValueOnly': u'%.0F',
                                 u'formatWithUnit': u'Port %.0F'}}},
 u'success': True}

The remote port is enabled and showing in the remote console via VRM website.

The request URL is:

GET https://vrmapi.victronenergy.com/v2/installations/1039/widgets/Graph?attributeCodes[]=rs

Am I understanding the syntax correctly?

api dc system
2 |3000

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

3 Answers
mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Hi Oskar, it looks ok to me.


but what I’d use is the diagnostics endpoint; instead of the graphs endpoint.


2 |3000

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

Oskari Teeri avatar image
Oskari Teeri answered ·

Hi,

I still cannot figure out how to get the remote support port. Remote support is enabled, but cannot get it through the diagnostics API.

I can get the basic diagnostics view, but cannot query 'rs' (=remote support port).

https://vrmapi.victronenergy.com/v2/installations/<inst_id>/diagnostics?count=1

What should I add here so I could get the remote port?

2 |3000

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

Fabio De Pascale avatar image
Fabio De Pascale answered ·

Having a similar issue, also posted on another question (here: https://community.victronenergy.com/questions/47643/api-empty-data.html). No matter what I do, all Graph endpoints return empty data, even if the data shows correctly in VRM.

Inst_id: 57479
Example endpoint used:
https://vrmapi.victronenergy.com/v2/installations/57479/widgets/Graph?attributeCodes[]=SOC

Output:

{
    "success": true,
    "records": {
        "data": {
            "51": []
        },
        "meta": {
            "51": {
                "code": "SOC",
                "description": "State of charge",
                "formatValueOnly": "%.1F",
                "formatWithUnit": "%.1F %%"
            }
        }
    }
}
2 |3000

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

Related Resources

Additional resources still need to be added for this topic