Play a sound every full hour

Post your questions and help other users.

Moderator: Martin

Lutz
Posts: 4
Joined: 11 Feb 2013 20:32

Play a sound every full hour

Post by Lutz » 11 Feb 2013 21:03

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Play a sound every full hour

Post by Martin » 12 Feb 2013 07:36

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:
  1. Alert flow with a trigger Periodic Timer: every 1h and an action Play Sound
  2. Enabler flow with trigger Time: at 8am on Mo-Fr and action Set Flow State: Enable Alarm flow
  3. Disabler flow with trigger Time: 6pm on Mo-Fr and action Set Flow State: Disable Alarm flow
This also ensures that the device is not woken up every hour at night and on weekends.


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

Lutz
Posts: 4
Joined: 11 Feb 2013 20:32

Re: Play a sound every full hour

Post by Lutz » 13 Feb 2013 19:10

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?

saherr1969
Posts: 27
Joined: 01 Dec 2012 08:13

Re: Play a sound every full hour

Post by saherr1969 » 14 Feb 2013 05:26

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Play a sound every full hour

Post by Martin » 14 Feb 2013 07:03

(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

Marcoid
Posts: 10
Joined: 23 Sep 2013 22:55

Re: Play a sound every full hour

Post by Marcoid » 16 Jan 2014 05:20

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.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Play a sound every full hour

Post by MURTUMA » 16 Jan 2014 07:48

There is that little nice search feature when selecting triggers and actions. Try to do a search with a word "sound".

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Play a sound every full hour

Post by kintrupf » 16 Jan 2014 07:49

What about "Calendar" triggers? Couldn't they be used to automatically enable/disable the hourly chime at exacly 8am/6pm?

Marcoid
Posts: 10
Joined: 23 Sep 2013 22:55

Re: Play a sound every full hour

Post by Marcoid » 17 Jan 2014 03:00

Hah! Thanks, MURTUMA. Brain full + no sleep = derp.

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Play a sound every full hour

Post by wfrcrd » 21 Apr 2016 13:07

I'd like to play a sound too in flow but I don't understand how to find the action, any help?
Thank you

Post Reply