Skip to main content

Library to retrieve information from a Telstra Smart Modem.

Project description

Telstra Smart Modem - Python library

This library provides a Python 3 interface to query information from a Telstra Smart Modem (Gen 2).

Tested with

  • Telstra Smart Modem (Gen 2):
    • Model: Technicolor DJA0231
    • Firmware: 18.1.c.0443-950-RB

Current features

  • Retrieving online status (Online, Backup & Offline)
  • Retrieving connected devices:
    • Checking if a device is connected
    • Retrieving information of seen device's (ipv4, ipv6, hostname, mac, connection type, ethernet port)






pip install telstra-smart-modem



import telstra_smart_modem

IP = ''
USERNAME = 'admin'
PASSWORD = 'Telstra'

# Create tsm (Telstra Smart Modem) modem object:
tsm = telstra_smart_modem.Modem(IP, USERNAME, PASSWORD)


# Get current devices object from modem:
>>> clients = tsm.getDevices()

# Get list of seen devices:
>>> clients.devices
		'online': False,
		'hostname': 'host1',
		'ipv4': None,
		'ipv6': [],
		'mac': '00:00:00:00:00:01',
		'connection': 'wireless - 5GHz',
		'eth-port': None
		'online': True,
		'hostname': 'host2',
		'ipv4': '',
		'ipv6': [
		'mac': '00:00:00:00:00:02',
		'connection': 'ethernet',
		'eth-port': 2

# Get specific device by mac address:
>>> clients.getDevice("00:00:00:00:00:01")
	'online': False,
	'hostname': 'host1',
	'ipv4': None,
	'ipv6': [],
	'mac': '00:00:00:00:00:01',
	'connection': 'ethernet',
	'eth-port': 2

# Check if a device is currently connected:
>>> clients.isOnline("00:00:00:00:00:02")
>>> clients.isOnline("11:11:11:11:11:11")

Online status

# Returns 'online' if the modem is connected through the WAN port.
# Returns 'backup' if the WAN connection is down and the 4G backup is active.
# Returns 'offline' if both the WAN and 4G connections are down.

>>> tsm.getModemStatus()

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 telstra-smart-modem, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size telstra_smart_modem-1.0.1-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size telstra-smart-modem-1.0.1.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page