Git Product home page Git Product logo

hueoff's Introduction

HUE AUTO OFF

version 1.2.0, 05/2023

Changelog:

  • 05/2023 v. 1.2.0 Added ability to turn lights back on when reconnecting

Description

Bash script for automatically turning off the lights when all predifined IP-addresses have left WiFi on ASUSWRT Merlin and turn them back on when they reconnect.

Prerequisites:

  • jq
  • curl
  • bash
  • jffs userscripts enabled

To find out how to get your Hue API hash see https://developers.meethue.com/ For this to work you mast have static DHCP enabled for the IP addresses you want to use

INSTALLATION:

  • Configure this scripty by replacing the variables under User variables,
  • Make sure you don't use a randomised MAC address on your device when connecting to your WiFi network.
  • Make script executable (chmod +x ./hueoff) and run "hueoff install" from CLI OR:
  • Place this script in /jffs/scripts/
  • create this folder: /jffs/scripts//hueoff.d/logs
  • add the following lines to /jffs/scripts/post-mount:
/jffs/scripts/hueoff &> /jffs/scripts/hueoff.d/logs/log.txt &
  • To see the log run:
cat /jffs/scripts/hueoff.d/logs/log.txt"

Credits:

Hue control functions were adapted from Harald van der Laan's Philips Hue Bash script: https://github.com/hvanderlaan/philips-hue

kallefornia 2023 https://github.com/duckwilliam/hueoff

hueoff's People

Contributors

duckwilliam 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.