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
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
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
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
![]()
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
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
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
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.
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> </all_tasks>
Also update before you run the task code.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>
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
Are "tasks" a subgroup, just like "logic declarations" in the xml file?
GadgetBandit
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
"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
Bookmarks