Skip to main content

Victron python api

Project description

vrm-api is a python client for interacting with victron installations.

## installation

$ pip install vrmapi

## Examples

$ python

>> from vrmapi.vrm import VRM_API
>> api = VRM_API(username='vrm_username', password='vrm_password')
>> api.get_user_sites(api.user_id)

>>{u'records':
[{u'accessLevel': 1,
u'device_icon': u'solar',
u'geofence': None,
u'geofenceEnabled': False,
u'idSite': 4470,
u'idUser': 5155,
u'identifier': u'6cecebc2d7de',
u'name': u'Mukuyu HC',
u'owner': True,
u'pvMax': 1458,
u'reports_enabled': True,
u'timezone': u'Africa/Kigali'}],
u'success': True}


>> api.get_consumption_site(inst_id=4470)

>>{u'records': {u'Bc': [[1473681210000, 0.018203735351562],
[1473692010000, 0.018211364746094],
[1473695610000, 0.036407470703125],
[1473699210000, 0.054611206054688],
[1473702810000, 0.054611206054688],
[1473706410000, 0.054611206054688],
[1473710010000, 0.054618835449219],
[1473713610000, 0.054611206054688],
[1473717210000, 0.036415100097656],
[1473720810000, 0.054603576660156],
[1473724410000, 0.054618835449219],
[1473728010000, 0.054611206054688],
[1473731610000, 0.054618835449219],
[1473735210000, 0.018203735351562],
[1473738810000, 0.018203735351562]],
u'Gc': False,
u'Pc': [[1473681210000, 0.018218994140625],
[1473684810000, 0.018203735351562],
[1473688410000, 0.036376953125],
[1473692010000, 0.018218994140625],
[1473742410000, 0.054641723632812],
[1473746010000, 0.0181884765625]],
u'gc': False},
u'success': True,
u'totals': {u'Bc': 0.63716125488281,
u'Gc': False,
u'Pc': 0.16384887695312,
u'gc': False}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vrmapi-0.1.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page