Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.
/ twilight.js Public archive

let the internet (or only a few people) control your smart home lights.

License

Notifications You must be signed in to change notification settings

Crinfarr/twilight.js

Repository files navigation

TWILIGHT.js

a library to make annoying yourself EVEN EASIER.

config steps:

  1. Run setup.batwindows or setup.shlinux to scan your network for lights.
  2. fill in the blanks in /src/config.js.example and rename it to config.js. 2a. the program onoff.js can help you fill in the light index section of the config. Just run `onoff [index] and it will blink the specified light until stopped. I'm working on a better setup utility but ssshhh its a secret
  3. to invite the bot to your server, click here and fill in your client ID. I've already set the permissions integer for you.
  4. Whenever you want to run the bot, just run node bot.js or run.bat/sh.

special thanks to @kolllor33 and @jangxx for the MagicHome Node libraries!