Tech-Log

A driver for fetching the tech-log (internal logs) from a TG radio.

Usage Example:

>>> from tgtools import Credential, TechLog
>>> credential = Credential('192.168.0.1', username='admin', password='admin')
>>> t = TechLog(credential)
>>> t.fetch('tech_log.zip')

Class Information:

class tgtools.parsers.techlog.techlog.TechLog(credential: Credential, remote_cn: str = '')

Fetch the tech log from a TG radio (‘tech_file.zip’)

__init__(credential: Credential, remote_cn: str = '')
Parameters:
  • credential (Credential) – Radio log-in credential (IP address, username, password)

  • remote_cn (str) – (Optional): name of remote radio

fetch(output_path: Path | str) bool

Fetch tech_log (HTTP) and save to file. Returns True if successful and file is created, otherwise False.

Parameters:

output_path (pathlib.Path) – Path (or filename) of output file.

Returns:

Indication of success.

Return type:

bool

credential: Credential

Credential to log into radio (IP address, username, password).

errors: list[Err]

List of errors.

remote_cn: str

Name of remote Client Node (if tunneling into a remote radio).