Hi,
I have what is probably a stupid question, but I'm going to ask it anyway, as I've hit a wall/mental block... I've created a Tasker profile that works as an alarm with increasing volume. Basically, it opens Pandora, sets the media volume to 2, waits 3 minutes, sets the media volume to 4, waits three minutes, etc until max volume is reached. This all works wonderfully. However, I've noticed that Pandora will occasionally stop running. Which, seeing how this is my alarm, and I kind of enjoy food, shelter and clothing; it's a bit of an issue. I've solved this issue by running a shell script that stores the output of pgrep com.pandora.android, runs an if statement on the variable, and launches Pandora if it's not running. Again, works beautifully. Now my question.. Right now I run that shell script, and if statement every time the volume increases. It's messy but it works. Is there a better way to control the flow where the media will continually increase while checking to make sure Pandora is running? I can provide details of the tasker profile and task if needed. Any help would be appreciated.
I have what is probably a stupid question, but I'm going to ask it anyway, as I've hit a wall/mental block... I've created a Tasker profile that works as an alarm with increasing volume. Basically, it opens Pandora, sets the media volume to 2, waits 3 minutes, sets the media volume to 4, waits three minutes, etc until max volume is reached. This all works wonderfully. However, I've noticed that Pandora will occasionally stop running. Which, seeing how this is my alarm, and I kind of enjoy food, shelter and clothing; it's a bit of an issue. I've solved this issue by running a shell script that stores the output of pgrep com.pandora.android, runs an if statement on the variable, and launches Pandora if it's not running. Again, works beautifully. Now my question.. Right now I run that shell script, and if statement every time the volume increases. It's messy but it works. Is there a better way to control the flow where the media will continually increase while checking to make sure Pandora is running? I can provide details of the tasker profile and task if needed. Any help would be appreciated.