Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Software


Reply
 
Share Thread Tools Display Modes
Old 11-06-2008, 12:41 AM   #1
Newbie
 
Join Date: Nov 2008
Posts: 2
flyingmonkey350 is an unknown quantity at this point
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.
flyingmonkey350 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 11-09-2008, 12:57 AM   #2
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 01-03-2009, 10:24 PM   #3
Newbie
 
Join Date: Dec 2008
Location: Chicago
Posts: 1
bdlitzer is an unknown quantity at this point
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,
bdlitzer is offline   Reply With Quote
Old 01-05-2009, 01:22 PM   #4
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 01-07-2009, 04:37 PM   #5
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
Thank you!
GadgetBandit
GadgetBandit is offline   Reply With Quote
Old 01-20-2009, 01:45 PM   #6
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
and when you incorporate time, could you post a piece of example code for us idiots?

Thanks,
GadgetBandit
GadgetBandit is offline   Reply With Quote
Old 01-28-2009, 11:48 AM   #7
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
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
GadgetBandit is offline   Reply With Quote
Old 01-28-2009, 12:07 PM   #8
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-26-2009, 12:35 PM   #9
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Here is the beginning:

2k1Toaster is offline   Reply With Quote
Old 04-08-2009, 10:45 PM   #10
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
What is a realistic timeframe?

Thanks,
GadgetBandit
GadgetBandit is offline   Reply With Quote
Old 04-08-2009, 10:48 PM   #11
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 04-09-2009, 02:28 PM   #12
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
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
GadgetBandit is offline   Reply With Quote
Old 04-14-2009, 07:46 PM   #13
Low Bitrate
 
GadgetBandit's Avatar
 
Join Date: Oct 2008
Posts: 87
GadgetBandit is an unknown quantity at this point
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

GadgetBandit is offline   Reply With Quote
Old 04-15-2009, 12:03 AM   #14
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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> */

2k1Toaster is offline   Reply With Quote
Old 04-15-2009, 12:06 AM   #15
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing music in 1.0.9.8 Failed hovalistic StreetDeck 0 07-07-2007 12:19 PM
Feature request: Show the total track time, not just the elapsed time johnk StreetDeck 8 06-02-2007 09:49 AM
who cares about the date and time? (POLL) liquid_smoke Road Runner 26 08-10-2005 09:34 AM
Looks like the time has come to find another frontend TucsonPred Media Engine 4 08-01-2005 03:52 PM



All times are GMT -5. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics