Crate fritzbox_logs

Crate fritzbox_logs 

Source
Expand description

Fritz!Box logs parsing library

Currently only textual logs could be parsed. To fetch the logs one can use a python module fritzconnection from a command line like the following:

% python -c "from fritzconnection import FritzConnection; from getpass import getpass; \
             conn = FritzConnection(password=getpass()); \
             logs = conn.call_action('DeviceInfo:1', 'GetDeviceLog'); \
             print(logs['NewDeviceLog'])"

Modules§

error

Structs§

DslReadyDetails
Bandwitdh information.
Entry
Log entry.
InternetEstablishedDetails
Details about the internet connection.

Enums§

EntryKind
Kind of a log entry.

Functions§

parse
Parses an input stream. Logs are expected to be lines in the form of [date] [time] [message] (where date is dd.mm.yy and time is hh:mm:ss). If a line doesn’t follow the format an error is returned. Timezone should be adjusted by a tz parameter. Unknown messages are also added to the result (although an info log is printed).