Skip to main content

Parse Freebox V5 status page

Project description

[![CircleCI](https://circleci.com/gh/demikl/freeboxv5-status.svg?style=svg)](https://circleci.com/gh/demikl/freeboxv5-status) [![codecov](https://codecov.io/gh/demikl/freeboxv5-status/branch/master/graph/badge.svg)](https://codecov.io/gh/demikl/freeboxv5-status)

Récupération du statut de la Freebox V5 en Python

Python wrapper for Freebox V5 status

Ce module accede aux donnees de statut sur http://mafreebox.free.fr/pub/fbx_info.txt : firmware freebox >=1.5.18 requis, pensez à mettre à jour votre Freebox.

L’état de la Freebox est accessible via un dictionnaire Python.

Exemple d’usage

import freebox_v5_status.freeboxstatus
import pprint

fbx = freebox_v5_status.freeboxstatus.FreeboxStatus()
pprint.pprint(fbx.status)

Exemple de résultat

{'adsl': {'CRC': {'down': 4, 'up': 0},
          'FEC': {'down': 6583, 'up': 82},
          'HEC': {'down': 1, 'up': 108},
          'attenuation': {'down': 17.0, 'up': 8.9},
          'history': {},
          'protocol': u'ADSL2+',
          'ready': True,
          'synchro_mode': u'Interleaved',
          'synchro_speed': {'down': 18941, 'up': 1025}},
 'general': {'connection_mode': u'D\xe9group\xe9',
             'fbx_model': u'Freebox ADSL',
             'fw_version': [1, 5, 20],
             'uptime': datetime.timedelta(7, 79260)},
 'network': {'dhcp': {},
             'interfaces': {'USB': {'down': None,
                                    'status': u'Non connect\xe9',
                                    'up': None},
                            'WAN': {'down': 2, 'status': u'Ok', 'up': 107},
                            'ethernet': {'down': 0,
                                         'status': u'100baseTX-FD',
                                         'up': 0},
                            'switch': {'down': 108,
                                       'status': u'100baseTX-FD',
                                       'up': 4}},
             'port_forwarding': {},
             'port_range_forwarding': {}},
 'telephone': {'configured': True, 'online': False, 'ringing': False},
 'wifi': {'DMZ_ip': u'192.168.0.0',
          'channel': 11,
          'dynamic_ip_range': (u'192.168.0.10', u'192.168.0.50'),
          'freeplayer_ip': u'192.168.0.104',
          'hasDHCPServer': True,
          'hasIPv6': True,
          'hasWakeOnLanProxy': False,
          'isActive': True,
          'isRespondingToPing': True,
          'key_algorithm': u'WPA (TKIP+AES)',
          'model': u'Ralink RT2880',
          'private_ip': u'192.168.0.254',
          'public_ip': u'127.0.0.1',
          'routerMode': True,
          'ssid': u'MySSID',
          'state': u'Ok'}}

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 freebox_v5_status, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size freebox_v5_status-1.1.1-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size freebox_v5_status-1.1.1.tar.gz (7.3 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