Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Time triggered events

  1. #1
    Newbie
    Join Date
    Nov 2008
    Posts
    2

    Time triggered events

    Is there a way to get fusion brain to check the computer time and trigger an event? Say At 8am trigger output 1 etc.

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by flyingmonkey350 View Post
    Is there a way to get fusion brain to check the computer time and trigger an event? Say At 8am trigger output 1 etc.
    Currently no. Time is relative in MDX. I can add it without too much problem though.

    So you want to be able to base if/then logical statements off of the current time correct? Easy enough. I will add it to the list of to-dos.
    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

  3. #3
    Newbie
    Join Date
    Dec 2008
    Location
    Chicago
    Posts
    1

    Time based Logic

    I am surprised this does not have this feature. There are many many uses for time based automation. Many things just need to be done at a certain time that are not based on specific environmental conditions.

    Another thing - can their be a random feature for the the ole' turn on the lights at a different time every night and other situations where some randomness is desired?

    Please do add time based logic/processing capabilities

    Thanks,

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by bdlitzer View Post
    I am surprised this does not have this feature. There are many many uses for time based automation. Many things just need to be done at a certain time that are not based on specific environmental conditions.

    Another thing - can their be a random feature for the the ole' turn on the lights at a different time every night and other situations where some randomness is desired?

    Please do add time based logic/processing capabilities

    Thanks,
    I am adding Time. I will also add a random feature.

    I will be out this week though so it wont be until next week anything is updated.
    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. #5
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    Thank you!
    GadgetBandit

  6. #6
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    and when you incorporate time, could you post a piece of example code for us idiots?

    Thanks,
    GadgetBandit

  7. #7
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    I'm almost done wiring my hydroponic project.

    button - on/off
    input0 - full switch
    ouput0 - pump
    output1 - drain value

    I need help. Books on XML haven't provided much except working with databases and the web. I need examples for looping and branching . . . and time. I'm monitoring light, temp, and humidity. I can turn on/off irrigaton, manually, but need values to go off automatically after 5 minutes or so.

    The hydronics is a stretch. I need to fill a tray, wait ~10 minutes, drain for 15 and repeat. This seems overwhelming and could really use help.

    Thanks,
    GadgetBandit

  8. #8
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Just a heads up, xml has nothing to do with the data encoding that MDX reads. XML is just the file format that MDX uses, nothing more nothing less.

    All the instructions are parsed out by MDX and interpretted by MDX. If you open the XML file in a web browser, it will just display the text of it since XML itself is just the format containing text, not a format containing programmatic instructions.

    The way MDX works is based on logic sections. So if you want to branch somewhere, you have a variable that gets set to some value based on some logic block. So your conditional statement then in the then-do section you change a variable to some value. Then in another logic block you do a conditional based off of that variable's value. Usually you dont need to branch though so I dont know what you need it for.

    As for looping that is easy but same principle. 1 variable increments every logic block. Then a block that does "if variable is greater than loop_max then reset variable to idle state or back to beginning" depending on if you want a loop finite or infinite. Then in a logic block you do "if variable is between x and y then do whatever" which is the inside part of the loop.

    Time is coming, I have been distracted lately with other side projects and uni. I am still trying to lay out a good foundation for the time triggered events. Such as when and how often. Say every hour, or every tuesday, or every 4th of the month, or every second millenia or something like that. I think what I came up with will work, it will just take some time coding in.
    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

  9. #9
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Here is the beginning:

    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. #10
    Low Bitrate GadgetBandit's Avatar
    Join Date
    Oct 2008
    Posts
    100
    What is a realistic timeframe?

    Thanks,
    GadgetBandit

Page 1 of 3 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, 11:19 AM
  2. Replies: 8
    Last Post: 06-02-2007, 08: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, 08: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, 02: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
  •