GithubHelp home page GithubHelp logo

gafrom / fauxmo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makermusings/fauxmo

0.0 0.0 0.0 35 KB

Emulated Belkin WeMo devices that work with the Amazon Echo

License: MIT License

Python 100.00%

fauxmo's Introduction

fauxmo

Emulated Belkin WeMo devices that work with the Amazon Echo

All of the code to make it work is contained in the single file, fauxmo.py. It requires Python 2.7 and standard libraries.

Usage

devices = (
  Device('kitchen light', RelayHandler(17),    None, 10005),
  Device('garden gate',   GateHandler(23, 24), None, 10006)
)

server = UpnpServer(devices)
server.start()

Clone this repository, add your devices to fauxmo.py file and execute it. If you want debug output, execute ./fauxmo.py -d. If you want it to run for an extended period, you could do something like nohup ./fauxmo.py & or turn it into a systemd service and enable it (please refer to the section below).

Once fauxmo.py is running, simply tell "Alexa, discover devices". You can also do this from the Alexa App or web at alexa.amazon.com.

Enable systemd service

Create a file /lib/systemd/system/fauxmo.service with the following contents:

[Unit]
Description=Emulator of WeMo devices

[Service]
Type=simple
ExecStart=/usr/bin/fauxmo -d

[Install]
WantedBy=multi-user.target

Make Raspberry connect to Wifi

After burning a Raspberry OS to the SD card, put a file /Volume/boot/wpa_supplicant.conf (to Raspberry SD card):

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="<name of your Wifi>"
    psk="<password of your Wifi>"
    key_mgmt=WPA-PSK
}

fauxmo's People

Contributors

gafrom avatar makermusings avatar jgstew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.