Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Time triggered events

  1. #11
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    It is already in MDX. Not in the configurator. Probably wont be for a while.

    But it is fully functional as far as I remember in MDX as of the late Feb. update.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  2. #12
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    The last post in feb said "here is a beginning."

    How do I get to it? Have I missed a thread that discusses it?

    GadgetBandit

  3. #13
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    It ain't a car. But the brain monitors my greenhouse and drives the hydroponics. It's a pain to run logic at 100 and try to count seconds. "Time" is important for 24 hour cycles. Please.

    GadgetBandit


  4. #14
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Sorry I missed replying, thought I had. Things have been hectic.

    But it is in the current release, pretty sure it came just after I posted that post with the pic.

    Here is the code:

    Code:
    /*
          <task id="Task Test" minimum_delta_vote_time="1000">
            <when year="XXXX" month="XX" day="01" hour="XX" minute="00" second="00" />
          </task>
          <task id="Task Test 2" minimum_delta_vote_time="1000">
            <when year="XXXX" month="XX" day="Thursday" hour="XX" minute="XX" second="00" />
          </task>
    */
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  5. #15
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    XX means dont care.

    And day can be a day of the week as a string or a number.

    Also numbers can have "X" in the spot anywhere in the number. So you could make the minute "X0" for it to fire every 10 minute tick and so on.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #16
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    I had to go be an adult for a while. Anyway . . . let's pretend I have between 1 and 2 brains. Yours works fine. I use Dreamweaver rather than Configurator. Please show me how to fire the output with the "when" condition every 10 minutes.


    <all_statements>
    <if fire_on="logic" minimum_delta_vote_time="100" id="one_minute_logic">

    <do function="Trigger Output" functionTargetID="My Digital Output" vote_opinion="on" vote_priority="Medium"></do>

    </if>
    </all_statements>

    Thanks,
    GadgetBandit

  7. #17
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Just like explained above... This will turn the output on at XX:00:00, XX:10:00, XX:20:00, XX:30:00, XX:40:00, and XX:50:00.

    Code:
        <all_tasks>
          <task id="Turn ON the Output" minimum_delta_vote_time="100">
            <when year="XXXX" month="XX" day="XX" hour="XX" minute="X0" second="00">
              <do function="trigger output" functionTargetID="theDigitalOutputID" vote_opinion="on" vote_priority="medium" />
            </when>
          </task>
        </all_tasks>
    Now if you want to turn it off, then make a new one and change the time to something for however long you want it on for. Say 1 minute, so then change it to:

    Code:
        <all_tasks>
          <task id="Turn ON the Output" minimum_delta_vote_time="100">
            <when year="XXXX" month="XX" day="XX" hour="XX" minute="X0" second="00">
              <do function="trigger output" functionTargetID="theDigitalOutputID" vote_opinion="on" vote_priority="medium" />
            </when>
          </task>
          <task id="Turn OFF the Output" minimum_delta_vote_time="100">
            <when year="XXXX" month="XX" day="XX" hour="XX" minute="X1" second="00">
              <do function="trigger output" functionTargetID="theDigitalOutputID" vote_opinion="off" vote_priority="medium" />
            </when>
          </task>
        </all_tasks>
    Also update before you run the task code.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #18
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    Are "tasks" a subgroup, just like "logic declarations" in the xml file?
    GadgetBandit

  9. #19
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by GadgetBandit View Post
    Are "tasks" a subgroup, just like "logic declarations" in the xml file?
    GadgetBandit
    It is a subgroup of the <logic> node on the same level as <all_statements>

    so:

    Code:
    <FusionControlCentreConfiguration>
      <logic>
        <all_tasks>
          <task />
        </all_tasks>
      </logic>
    </FusionControlCentreConfiguration>
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  10. #20
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    "Why won't this work?" !!!!!

    Last night and all the morning, I've asked this question a thousand times!! . . . I just noticed your example was for "hours" not "minutes".

    IT WORKS!!! Thank you!!!

    Can I replace the "do function" with an "if" statement?

    Thank you,
    GadgetBandit

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 12:19 PM
  2. Replies: 8
    Last Post: 06-02-2007, 09:49 AM
  3. who cares about the date and time? (POLL)
    By liquid_smoke in forum Road Runner
    Replies: 26
    Last Post: 08-10-2005, 09:34 AM
  4. Looks like the time has come to find another frontend
    By TucsonPred in forum Media Engine
    Replies: 4
    Last Post: 08-01-2005, 03:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •