|
 |
|
11-06-2008, 12:41 AM
|
#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.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
11-09-2008, 12:57 AM
|
#2
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by flyingmonkey350 
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.
|
|
|
01-03-2009, 10:24 PM
|
#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,
|
|
|
01-05-2009, 01:22 PM
|
#4
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by bdlitzer 
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.
|
|
|
01-07-2009, 04:37 PM
|
#5
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
Thank you!
GadgetBandit
|
|
|
01-20-2009, 01:45 PM
|
#6
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
and when you incorporate time, could you post a piece of example code for us idiots?
Thanks,
GadgetBandit
|
|
|
01-28-2009, 11:48 AM
|
#7
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
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
|
|
|
01-28-2009, 12:07 PM
|
#8
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
02-26-2009, 12:35 PM
|
#9
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Here is the beginning:
|
|
|
04-08-2009, 10:45 PM
|
#10
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
What is a realistic timeframe?
Thanks,
GadgetBandit
|
|
|
04-08-2009, 10:48 PM
|
#11
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
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.
|
|
|
04-09-2009, 02:28 PM
|
#12
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
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
|
|
|
04-14-2009, 07:46 PM
|
#13
|
|
Low Bitrate
Join Date: Oct 2008
Posts: 87
|
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
|
|
|
04-15-2009, 12:03 AM
|
#14
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
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>
*/
|
|
|
04-15-2009, 12:06 AM
|
#15
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:34 AM.
| |