Skip to content

A WeMo emulator for running local commands on your mac machine

Notifications You must be signed in to change notification settings

bryanberger/alexa-mac-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alexa Mac Controller

Uses the WeMo emulator wemore to expose an on/off command to Alexa to put your mac to sleep, and to wake it up (immediately).

Setup

  1. npm install
  2. node app
  3. rename .env_sample to .env and add a unique SERIAL (I used a random uuid)
  4. Go to the Alexa App, or tell Alexa to discover new devices.
  5. (optional) If you want to run this controller as a service, install pm2 by running npm install pm2 -g and then run pm2 start app.js from this directory.
  6. (optional) To start pm2 on boot run pm2 startup. Alternately, to stop pm2 from launching on boot run pm2 unstartup launchd

Alexa commands

  1. Say Alexa turn off the Computer to put your mac to sleep.
  2. Say Alexa turn on the Computer to wake your mac from sleep.

About

A WeMo emulator for running local commands on your mac machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published