1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sunrise / Wakeup light script

Discussion in 'Hyperion Extensions' started by cookay, 4 January 2017.

  1. cookay

    cookay New Member

    Messages:
    1
    Hardware:
    RPi1/Zero, RPi2, RPi3
    Hi Guys - New to the forum but a long term hyperion user.

    I have my LED rig setup in my bedrom quite near to my bed, so I thought about setting up a wakeup light.

    It's very basic... but this is what I've thrown together:

    #!/bin/bash
    hyperion-remote -m 0.2
    hyperion-remote -c red
    sleep 5m
    hyperion-remote -m 0.25
    sleep 3m
    hyperion-remote -m 0.3
    sleep 3m
    hyperion-remote -m 0.35
    hyperion-remote -c orange
    sleep 3m
    hyperion-remote -m 0.4
    sleep 3m
    hyperion-remote -m 0.45
    sleep 3m
    hyperion-remote -m 0.5
    sleep 2m
    hyperion-remote -m 0.6
    sleep 2m
    hyperion-remote -m 0.7
    sleep 2m
    hyperion-remote -m 0.8
    sleep 2m
    hyperion-remote -m 0.9
    sleep 2m
    hyperion-remote -m 1


    I've got this setup to run as a Cronjob every morning before work and it reaches full brightness 10 minutes before my audio alarm goes off on my phone.

    I just wanted to share to see if anyone has done something similar or could point out any better ways of doing this.

    Cheers!
     
    • Like Like x 2
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    612
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266