Play a sound every full hour
Moderator: Martin
Play a sound every full hour
Hello,
it theems that I did'nt understood the principle of Automagic until now.
I want a short "beep" if I'm at work every hour.
From monday to friday, from o8am to o6 pm, at full hour ( minutes are 0, seconds are 0 ) make beep.
What is the right way to make this?
There is a trigger "periodic timer" but there is no trigger "if minutes and seconds are 0". What can I do with the periodic timer?
I thought the trigger should be "time" but there is no range. Have I to use as trigger the starting time, then to make a condition is it monday to friday and from o8am to o6pm, then make a periodic timer "every 60minutes". But there is no action "periodic timer" - only a trigger.
What do I wrong?
Thanks.
it theems that I did'nt understood the principle of Automagic until now.
I want a short "beep" if I'm at work every hour.
From monday to friday, from o8am to o6 pm, at full hour ( minutes are 0, seconds are 0 ) make beep.
What is the right way to make this?
There is a trigger "periodic timer" but there is no trigger "if minutes and seconds are 0". What can I do with the periodic timer?
I thought the trigger should be "time" but there is no range. Have I to use as trigger the starting time, then to make a condition is it monday to friday and from o8am to o6pm, then make a periodic timer "every 60minutes". But there is no action "periodic timer" - only a trigger.
What do I wrong?
Thanks.
Re: Play a sound every full hour
Hello Lutz
Periodic Timer measures the time relative to the time when the trigger becomes active (when the flow is enabled).
If you want a trigger "every 1h" that triggers at the full hour then you have to enable the flow at a full hour.
In your case you could build three flows:
You could also build a flow like this:
Trigger: Periodic Timer: every 1h
Condition: Time Range: when between 8am - 6pm on Mo-Fr
true -> Action: Play Sound
Drawback:
-you have to enable this flow manually at the full hour since the trigger starts the timer when the flow is enabled
-the flow also executes at night and on weekends and thus consumes more battery
Regards,
Martin
Periodic Timer measures the time relative to the time when the trigger becomes active (when the flow is enabled).
If you want a trigger "every 1h" that triggers at the full hour then you have to enable the flow at a full hour.
In your case you could build three flows:
- Alert flow with a trigger Periodic Timer: every 1h and an action Play Sound
- Enabler flow with trigger Time: at 8am on Mo-Fr and action Set Flow State: Enable Alarm flow
- Disabler flow with trigger Time: 6pm on Mo-Fr and action Set Flow State: Disable Alarm flow
You could also build a flow like this:
Trigger: Periodic Timer: every 1h
Condition: Time Range: when between 8am - 6pm on Mo-Fr
true -> Action: Play Sound
Drawback:
-you have to enable this flow manually at the full hour since the trigger starts the timer when the flow is enabled
-the flow also executes at night and on weekends and thus consumes more battery
Regards,
Martin
Re: Play a sound every full hour
http://automagic4android.com/flow.php?i ... 9b138190ec Hello Martin, thank you. I think I understood what the three flows should do.
But it doesnt work correctly. Yesterday I wrote the flows and started the main flow manually for testing purposes. As result from yesterday to now 15 minutes after the complete hour the message occurs. I manually stopped the main flow but the signal comes 15 min to late.
Do you have an idea?
But it doesnt work correctly. Yesterday I wrote the flows and started the main flow manually for testing purposes. As result from yesterday to now 15 minutes after the complete hour the message occurs. I manually stopped the main flow but the signal comes 15 min to late.
Do you have an idea?
-
- Posts: 27
- Joined: 01 Dec 2012 08:13
Re: Play a sound every full hour
Another thought:
1. Create two triggers, one for 8am Mon-Fri and another for 6pm Mon-Fri. Put both triggers into one flow.
2. Add condition Flow State of Beeper Flow.
3. Connect TRUE result to Action Flow Disable Beeper Flow
4. Connect FALSE result to Action Flow Enable Beeper Flow.
To start this toggling back and forth correctly, you will need to set the state of Beeper Flow to enabled if the current time is between 8am and 6pm or disabled if outside the desired window.
Good luck,
Stephen
P.S. Martin, the attached flow link in the earlier post failed to import anything for me.
1. Create two triggers, one for 8am Mon-Fri and another for 6pm Mon-Fri. Put both triggers into one flow.
2. Add condition Flow State of Beeper Flow.
3. Connect TRUE result to Action Flow Disable Beeper Flow
4. Connect FALSE result to Action Flow Enable Beeper Flow.
To start this toggling back and forth correctly, you will need to set the state of Beeper Flow to enabled if the current time is between 8am and 6pm or disabled if outside the desired window.
Good luck,
Stephen
P.S. Martin, the attached flow link in the earlier post failed to import anything for me.
Re: Play a sound every full hour
(The flow link in the post above should work now).
Did you manually enable the flow exactly at the full hour? If you can reproduce this problem, then please send the log to me (menu->Manage->Log, menu->Send Log resp. Menü->Verwalten->Log, Menü->Log senden).
The flow StundengongAktivierung uses an action Execute Flow (resp. Flow ausführen) that will execute the Stundengong once but you need to enable the flow at 8am so the flow becomes active and runs on its own.
You can use an action Set Flow State: Enable (resp. Setze Flow Status: Aktivieren) to enable the flow. You can use an action Set Flow State: Disable (resp. Setze Flow Status: Deaktivieren) in the flow StundengongDeaktivierung.
Regards,
Martin
Did you manually enable the flow exactly at the full hour? If you can reproduce this problem, then please send the log to me (menu->Manage->Log, menu->Send Log resp. Menü->Verwalten->Log, Menü->Log senden).
The flow StundengongAktivierung uses an action Execute Flow (resp. Flow ausführen) that will execute the Stundengong once but you need to enable the flow at 8am so the flow becomes active and runs on its own.
You can use an action Set Flow State: Enable (resp. Setze Flow Status: Aktivieren) to enable the flow. You can use an action Set Flow State: Disable (resp. Setze Flow Status: Deaktivieren) in the flow StundengongDeaktivierung.
Regards,
Martin
Re: Play a sound every full hour
Hi there,
Am I missing something -- I don't see an action named "Play Sound". I need this for a flow in working on... there's a particular notification sound (not the default one) I want to play in conjunction with a notification I want to display in the status bar.
Am I missing something -- I don't see an action named "Play Sound". I need this for a flow in working on... there's a particular notification sound (not the default one) I want to play in conjunction with a notification I want to display in the status bar.
Re: Play a sound every full hour
There is that little nice search feature when selecting triggers and actions. Try to do a search with a word "sound".
Re: Play a sound every full hour
What about "Calendar" triggers? Couldn't they be used to automatically enable/disable the hourly chime at exacly 8am/6pm?
Re: Play a sound every full hour
Hah! Thanks, MURTUMA. Brain full + no sleep = derp.
Re: Play a sound every full hour
I'd like to play a sound too in flow but I don't understand how to find the action, any help?
Thank you
Thank you