{"id":13586610,"url":"https://github.com/iancmcc/ouimeaux","last_synced_at":"2025-04-07T18:34:17.553Z","repository":{"id":6715921,"uuid":"7961646","full_name":"iancmcc/ouimeaux","owner":"iancmcc","description":"Python API to Belkin WeMo devices","archived":true,"fork":false,"pushed_at":"2021-01-04T17:29:44.000Z","size":888,"stargazers_count":574,"open_issues_count":0,"forks_count":149,"subscribers_count":50,"default_branch":"develop","last_synced_at":"2025-03-21T08:37:40.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/ouimeaux","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iancmcc.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-01T16:36:55.000Z","updated_at":"2025-03-15T04:01:24.000Z","dependencies_parsed_at":"2022-09-13T03:10:47.657Z","dependency_job_id":null,"html_url":"https://github.com/iancmcc/ouimeaux","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iancmcc%2Fouimeaux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iancmcc%2Fouimeaux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iancmcc%2Fouimeaux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iancmcc%2Fouimeaux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iancmcc","download_url":"https://codeload.github.com/iancmcc/ouimeaux/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247707729,"owners_count":20982834,"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-08-01T15:05:40.774Z","updated_at":"2025-04-07T18:34:17.004Z","avatar_url":"https://github.com/iancmcc.png","language":"Python","funding_links":[],"categories":["Python","Protocol Library"],"sub_categories":["WeMo"],"readme":"# ouimeaux\n\n⚠️ ⚠️ ⚠️\n\nThe ouimeaux project is no longer actively maintained. Please contact @iancmcc\nif you would like to be added to a list of maintained forks.\n\n⚠️ ⚠️ ⚠️\n\nOpen source control for Belkin WeMo devices\n\n* Free software: BSD license\n* Documentation: http://ouimeaux.rtfd.org.\n\n## Features\n\n* Supports WeMo Switch, Light Switch, Insight Switch and Motion\n* Command-line tool to discover and control devices in your environment\n* REST API to obtain information and perform actions on devices\n* Simple responsive Web app provides device control on mobile\n* Python API to interact with device at a low level\n\n## About this fork\n\nThe original repository can be found here: https://github.com/iancmcc/ouimeaux\n\nIt doesn't appear to be maintained and it doesn't work with modern Python\npackages.\n\nIt has been forked here so that I can include my modifications to\n`requirements.txt` as well as document how to use it.\n\n## Installation\n\n```\n$ sudo pip install virtualenv\n$ mkdir ouimeaux-env\n$ virtualenv ouimeaux-env\n$ source ouimeaux-env/bin/activate\n$ cd ouimeaux-env\n$ pip install git+https://github.com/iancmcc/ouimeaux.git\n```\n\nAt this point you should be able to use `wemo` and `wemo server` so long as\nyou've activated your environment with `source ouimeaux-env/bin/activate`.\n\n**Note:** Ensure that the `pip` and `virtualenv` command you use belongs to a\nPython 2 installation. On some systems, there are multiple versions of Python\ninstalled. See below for an example from my Fedora system.\n\n```\n$ /bin/ls -1 \"$(dirname $(which python))/virtualenv\"{,-2} \"$(dirname $(which python))/p\"{ython,ip}[23]\n/usr/bin/pip2\n/usr/bin/pip3\n/usr/bin/python2\n/usr/bin/python3\n/usr/bin/virtualenv\n/usr/bin/virtualenv-2\n\n$ pip --version\npip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)\n\n$ pip2 --version\npip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)\n```\n\n## HTTP client version\n\nThe `client.py` script provided by [BlackLight](https://github.com/BlackLight)\nallows the user to send simple commands to a device without the cumbersome\n(and [currently broken](https://github.com/iancmcc/ouimeaux/issues/193)) `Discoverer`\nobject.\n\nRequirements: install requests:\n\n```\npip install requests\n```\n\nYou can run client.py in two modes:\n\n### Scan mode\n\nWill scan for available WeMo Switch devices on the network. Example:\n\n```\npython client.py --scan --subnet 192.168.1.0/24\n```\n\n### Action mode\n\nWill run an action on a specified device. Example:\n\n```\npython client.py --device 192.168.1.19 --on\n```\n\nWith no `--on|--off|--toggle` action specified the script will return a JSON\nwith the device info:\n\n```json\n{\n  \"device\": \"192.168.1.19\",\n  \"name\": \"Lightbulbs\",\n  \"state\": false\n}\n```\n\nRun `python client.py --help` for more info about the available options.\n\n## Troubleshooting\n\n#### Using a VPN \nThe `wemo` command won't be able to communicate with your devices if you're connected to a VPN. It may be redirecting UDP traffic somewhere else. Disconnect from the VPN and the tool should work.\n\nOpen an issue and I'll try to help.\n\n#### Docker\n\nYou need to be on the same network as your device. To do this ensure you are using `host` network, see [https://docs.docker.com/network/host/](https://docs.docker.com/network/host/) for more info. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiancmcc%2Fouimeaux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiancmcc%2Fouimeaux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiancmcc%2Fouimeaux/lists"}