Skip to main content

Python API for talking to the Deltran Battery Tender API

Project description


pip install batterytender



You can import the module as batterytender.

import batterytender


bt = batterytender.BatteryTender(email, password)

for monitor in bt.monitors:
    print('Monitor id: {}'.format(monitor.device_id))
    print('    Name: {}'.format(
    print('    Date: {}'.format(
    print('    Voltage: {}'.format(monitor.voltage))

    # Historical readings
    print('    History:')
    for history in monitor.history:
        print('        Date: {}'.format(history['date']))
        print('        Voltage: {}'.format(history['voltage']))

    # The latest reading is also available in the same format as
    # historical reading via the `.current` property
    print('    Current:')
    print('        Date: {}'.format(monitor.current['date']))
    print('        Voltage: {}'.format(monitor.current['voltage']))

Project details

Download files

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

Files for batterytender, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size batterytender-1.1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page