Ok, I have a Motion detector that controlls my office stuff...including my WinAmp music...
It works FINE with all my lights...but if I errantly send a PLAY to WinAmp and it is already playing, it restarts the song which is anoying...
I have a "flag" that I set when WinAmp is playing that SHOULD catch that, but I am having a logic issue....
I have a "Motion" script that turns on lights and WinAmp IF WinAmpFlag is currently Off (it then Sets WinAmpFlag ON) This script also clears any timed event set for shutdown...
I have a ""NoMotion" script that starts a timer for 10 Min and then shuts stuff down and resets WinAmpFlag...any motion in that time period SHOULD reset everything
I need something more, either another flag or another script to work things smoothly... but I am not sure what...
Do I need to set a Seperate script for the music, that only trips when it is not playing, but doesn't set the flag... I just can't see the logic today (not enough/too much coffee)
It works FINE with all my lights...but if I errantly send a PLAY to WinAmp and it is already playing, it restarts the song which is anoying...
I have a "flag" that I set when WinAmp is playing that SHOULD catch that, but I am having a logic issue....
I have a "Motion" script that turns on lights and WinAmp IF WinAmpFlag is currently Off (it then Sets WinAmpFlag ON) This script also clears any timed event set for shutdown...
I have a ""NoMotion" script that starts a timer for 10 Min and then shuts stuff down and resets WinAmpFlag...any motion in that time period SHOULD reset everything
I need something more, either another flag or another script to work things smoothly... but I am not sure what...
Do I need to set a Seperate script for the music, that only trips when it is not playing, but doesn't set the flag... I just can't see the logic today (not enough/too much coffee)
Comment