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§
Structs§
- DslReady
Details - Bandwitdh information.
- Entry
- Log entry.
- Internet
Established Details - Details about the internet connection.
Enums§
- Entry
Kind - Kind of a log entry.
Functions§
- parse
- Parses an input stream.
Logs are expected to be lines in the form of
[date] [time] [message](wheredateisdd.mm.yyandtimeishh:mm:ss). If a line doesn’t follow the format an error is returned. Timezone should be adjusted by atzparameter. Unknown messages are also added to the result (although an info log is printed).