{"id":19839410,"url":"https://github.com/scientifichackers/pymiwifi","last_synced_at":"2025-05-01T19:30:20.305Z","repository":{"id":62581815,"uuid":"145757630","full_name":"scientifichackers/pymiwifi","owner":"scientifichackers","description":"A python API to the Xiaomi Mi WiFi Router web interface","archived":false,"fork":false,"pushed_at":"2023-01-16T11:18:13.000Z","size":9,"stargazers_count":15,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T17:11:32.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scientifichackers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T20:10:27.000Z","updated_at":"2024-01-18T03:43:01.000Z","dependencies_parsed_at":"2023-02-10T03:00:19.704Z","dependency_job_id":null,"html_url":"https://github.com/scientifichackers/pymiwifi","commit_stats":null,"previous_names":["pycampers/pymiwifi"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fpymiwifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fpymiwifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fpymiwifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fpymiwifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientifichackers","download_url":"https://codeload.github.com/scientifichackers/pymiwifi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932513,"owners_count":21667157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:22:18.012Z","updated_at":"2025-05-01T19:30:19.856Z","avatar_url":"https://github.com/scientifichackers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyMiWiFi\nA python API to the Xiaomi Mi WiFi Router web interface\n\n(Tested on the Mi Router 3C)\n\n## Install\n\n[PyPI](https://pypi.org/project/pymiwifi/)\n\n`pip install pymiwifi`\n\nLicense: MIT\u003cbr\u003e\nPython \u003e= 3.6 \n\n\n## Use\n\n```python\nimport pymiwifi\n\n\nmiwifi = pymiwifi.MiWiFi()\nmiwifi.login('admin_pass')\n\nmiwifi.status()\n```\n\n```\n{'dev': [{'mac': 'xx:xx:xx:xx:xx:xx',\n   'maxdownloadspeed': '933178',\n   'upload': '28777897',\n   'upspeed': '339',\n   'downspeed': '194',\n   'online': '1320',\n   'devname': 'android-xx',\n   'maxuploadspeed': '672600',\n   'download': '69654908'},\n  {'mac': 'xx:xx:xx:xx:xx:xx',\n   'maxdownloadspeed': '1239976',\n   'upload': '1249682170',\n   'upspeed': '431417',\n   'downspeed': '8283',\n   'online': '5531',\n   'devname': 'xx-pc',\n   'maxuploadspeed': '744959',\n   'download': '42672896'},\n  {'mac': 'xx:xx:xx:xx:xx:xx',\n   'maxdownloadspeed': '1074270',\n   'upload': '1745315',\n   'upspeed': '63',\n   'downspeed': '84',\n   'online': '5392',\n   'devname': 'xy-pc',\n   'maxuploadspeed': '37234',\n   'download': '19197169'},\n  {'mac': 'xx:xx:xx:xx:xx:xx',\n   'maxdownloadspeed': '0',\n   'upload': '0',\n   'upspeed': '0',\n   'downspeed': '0',\n   'online': '5531',\n   'devname': '5C:CF:7F:33:BD:41',\n   'maxuploadspeed': '0',\n   'download': '0'}],\n 'code': 0,\n 'mem': {'usage': 0.38, 'total': '64 M', 'hz': '800MHz', 'type': 'DDR2'},\n 'temperature': 0,\n 'count': {'all': 4, 'online': 3},\n 'hardware': {'mac': 'xx:xx:xx:xx:xx:xx',\n  'platform': 'R3L',\n  'version': '2.8.50',\n  'channel': 'release',\n  'sn': '15516/20172849'},\n 'upTime': '5573.27',\n 'cpu': {'core': 1, 'hz': '575MHz', 'load': 0.3267},\n 'wan': {'downspeed': '9023',\n  'maxdownloadspeed': '1264691',\n  'history': '460239,437753,431551,444594,443864,444399,437105,425708,444010,443786,443956,443522,437202,425671,444129,448279,443948,437086,429470,440070,444176,444169,444589,436990,424927,443799,446999,447205,431575,430753,467157,444888,444520,443385,432773,429452,443798,444853,445282,436298,425354,444444,444744,444884,442913,429838,434359,444254,444070,445424',\n  'devname': 'eth0.2',\n  'upload': '1296497767',\n  'upspeed': '436401',\n  'maxuploadspeed': '751567',\n  'download': '136487233'}}\n\n```\n\n## Advanced\n\n**If there's an endpoint that's not available in the API, you can just -**\n\n`miwifi.get_api_endpoint('xqsystem/wifi_macfilter_info')`\n\n(Use chrome dev tools' \"Network\" Tab to see these endpoints)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fpymiwifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientifichackers%2Fpymiwifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fpymiwifi/lists"}