Skip to main content

A package to extract information from Movistar routers

Project description

Movistar Router Library

This is a simple client to interact with Movistar routers

Tested with:

  • Askey RFT3505VW Python package

Installation

pip install router_movistar

Methods

get_router_info()

Returns a objects with the following fields:

  • devices: Array of objects representing the devices connected to the local network. Each object contains the following fields:
    • status: Boolean indicating whether the device is connected.
    • device_name: String representing the name of the device.
    • ip_address: String representing the IP address of the device on the local network.
    • interface: String representing the network interface used by the device.
    • mac_address: String representing the MAC address of the device.
  • router_brand: String representing the brand of the router.
  • model: String representing the model of the router.
  • serial_number: String representing the serial number of the router.
  • hardware_version: String representing the hardware version of the router.
  • software_version: String representing the software version of the router.
  • firmware_version: String representing the firmware version of the router.
  • status: String representing the connectivity status of the router.
  • wan_ip: String representing the Wide Area Network IP address of the router.
  • local_gateway_ip: String representing the Local Area Network IP address of the router.
  • subnet_mask: String representing the subnet mask of the router's LAN.
  • dns1, dns2: Strings representing the Domain Name System servers used by the router.
  • wifi_24ghz_status, wifi_5ghz_status: Strings representing the status (Enabled/Disabled) of the 2.4GHz and 5GHz Wi-Fi bands respectively.
  • ssid_24ghz, ssid_5ghz: Strings representing the Service Set Identifiers (name of the Wi-Fi network) for the 2.4GHz and 5GHz bands respectively.
  • hide_ssid_24ghz, hide_ssid_5ghz: Booleans representing whether the SSID is hidden for the 2.4GHz and 5GHz bands respectively.
  • wifi_24ghz_password, wifi_5ghz_password: Strings representing the password for the 2.4GHz and 5GHz Wi-Fi bands respectively.
  • wifi_24ghz_encryption, wifi_5ghz_encryption: Strings representing the encryption type for the 2.4GHz and 5GHz Wi-Fi bands respectively.
  • auth_method_24ghz, auth_method_5ghz: Strings representing the authentication method for the 2.4GHz and 5GHz Wi-Fi bands respectively.
  • encryption_24ghz, encryption_5ghz: Strings representing the encryption type for the 2.4GHz and 5GHz Wi-Fi bands respectively.
  • wifi_5ghz_channel: Integer representing the channel number for the 5GHz Wi-Fi band.
  • iptv_service, iptv_service_ip, iptv_addressing_type: Strings representing the IPTV service details.
  • voip_terminal, voip_status, voip_an, voip_ss, voip_le: Strings representing VOIP service information.
  • ont_id: String representing the Optical Network Terminal ID.

Example

{
  "devices": [
    {
      "status": true,
      "device_name": "MacBook-Pro (2)",
      "ip_address": "192.168.1.99",
      "interface": "eth4.0",
      "mac_address": "CE:51:A0:D9:4C:12"
    },
    {
      "status": true,
      "device_name": "Samsung-Washer",
      "ip_address": "192.168.1.98",
      "interface": "wl0",
      "mac_address": "28:6D:97:68:3C:FD"
    }
  ],
  "router_brand": "Askey",
  "model": "3505VW",
  "serial_number": "C8B42225692B",
  "hardware_version": "REV4_B6M",
  "software_version": "CL_g000_R3505VWCL203_n48",
  "firmware_version": "CL_g000_R3505VWCL203_n48",
  "status": "Connected",
  "wan_ip": "186.106.23.136",
  "local_gateway_ip": "192.168.1.1",
  "subnet_mask": "255.255.255.0",
  "dns1": "",
  "dns2": "",
  "wifi_24ghz_status": "Enabled",
  "ssid_24ghz": "familia_abreu",
  "hide_ssid_24ghz": true,
  "wifi_24ghz_password": "contrasena1234!",
  "wifi_24ghz_encryption": "",
  "auth_method_24ghz": "psk2",
  "encryption_24ghz": "aes",
  "wifi_5ghz_status": "Enabled",
  "ssid_5ghz": "familia_abreu_5Ghz",
  "wifi_5ghz_password": "contrasena1234!",
  "wifi_5ghz_encryption": "tkip+aes",
  "wifi_5ghz_channel": 56,
  "hide_ssid_5ghz": false,
  "auth_method_5ghz": "psk2",
  "encryption_5ghz": "aes",
  "iptv_service": "7.7.7.1",
  "iptv_service_ip": "10.76.185.79",
  "iptv_addressing_type": "STATIC",
  "voip_terminal": "",
  "voip_status": "",
  "voip_an": "",
  "voip_ss": "",
  "voip_le": "",
  "ont_id": ""
}

reboot()

Reboots the router.

Example

from router_movistar.client import Client

password = 'your_password'
c = Client(password)
info = c.get_router_info()
print(info.model_dump_json(indent=2))
c.reboot()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

router_movistar-1.0.3.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

router_movistar-1.0.3-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page