Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash Lights indefinitely? #10

Open
thehauntedmattress opened this issue Jul 13, 2019 · 3 comments
Open

Flash Lights indefinitely? #10

thehauntedmattress opened this issue Jul 13, 2019 · 3 comments

Comments

@thehauntedmattress
Copy link

thehauntedmattress commented Jul 13, 2019

Is there a way to flash the lights indefinitely or for a set period of time? Kind of like using the lselect command (but I need it longer than 15 seconds)? Thanks.

@thehauntedmattress thehauntedmattress changed the title Flash Lights indefinietly? Flash Lights indefinitely? Jul 13, 2019
@thehauntedmattress
Copy link
Author

thehauntedmattress commented Apr 16, 2021

Hey @bahamas10, I noticed that I posted this almost two years ago. I redownloaded hueadm again and found a purpose for it. But I wanted to re-open my question above. Is there a way to make the "lselect" command flash the lights longer than 15 seconds? Is there a value in one of the files of the code that I can edit to change that? Thanks.

@DaveTSG
Copy link

DaveTSG commented Sep 3, 2021

You could create a BASH script that runs it three times, and then run that script via cron every minute...:

nano ~/myscript.sh

#!/bin/bash
hueadm light 69 select
sleep 15
hueadm light 69 select
sleep 15
hueadm light 69 select


chmod +x ~/myscript.sh
crontab -e

* * * * * ~/myscript.sh
(Save and exit)

That would at least satisfy your "indefinitely" requirement in the OP...
Run it on a $10 RPi Zero headless, then just turn the Pi off/on when you want the lights flashing... (actually, better yet would be to run it on a proper RPi with an Ethernet port, and then just plug in/unplug the ethernet cable, that way you're not power-cycling the Pi without allowing it to safely shut down...)

@thehauntedmattress
Copy link
Author

@DaveTSG I just saw your response even though it was a year ago. Adding the sleep 15 and then two && in my command actually makes this work! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants