I'm not sure if there is a more elegant way to do it; however, you can write some scripts that run on a loop to achieve what you're asking about I believe. Example:
[ACTIVATELOOP]
wait "Active Switch" State == on
"Device Element" enabled = true
start "Device Element Script"
goto "ACTIVATELOOP"
And in a separate script:
[DEACTIVATELOOP]
wait "Active Switch" State == off
"Device Element" enabled = false
stop "Device Element Script"
goto "DEACTIVATELOOP"
Global variables don’t count up or down. You can change the display name though.Global Timers
Tried searching and could not find the answer. (still very new to scripting) My goal is to have a cluster of hop addition countdowns that all start when I start the boil process.
I'm able to create a timer and set the time and display name via a script no prob but while reading about it, it sounded like the experts are using globals as timers when creating multiple timers. I got as far as setting the time value for the global but got stuck.
In addition to setting the time, is it possible to set the display name and whether it counts up or down as well as start it via a script?
Thanks! I think I will revise my screen to do just that. Use that same timer and repurpose it for each step....especially now that I know I can change the display name if I want to.Global variables don’t count up or down. You can change the display name though.
I use one timer element for boil/mash step time. One timer element is the easiest way in my opinion. I set the value of the timer element using a global variable in a script. The same script watches the timer element’s value (wait or if statement) for the end condition. This is either <= O (end of step) or the hop addition time (also a global variable). One can use global variables or script variables. I use a combination of both depending on what I am trying to do. Start with one type and play with it till you get it to function the way you want. Then refine/over complicate it later.
I use one timer for almost every thing. I have been working on a complex hop script that add hops in groups (at the same time). It is a work in progress.Global variables don’t count up or down. You can change the display name though.
I use one timer element for boil/mash step time. One timer element is the easiest way in my opinion. I set the value of the timer element using a global variable in a script. The same script watches the timer element’s value (wait or if statement) for the end condition. This is either <= O (end of step) or the hop addition time (also a global variable). One can use global variables or script variables. I use a combination of both depending on what I am trying to do. Start with one type and play with it till you get it to function the way you want. Then refine/over complicate it later.
Does the pid element behave as expected when not using a script to set the target?
PID Element output is controlled by the BruControl firmware. you can set different parameters and set the target temp by script, but not the outputCorrect. If just controlling it via the element control settings with a temp probe plugged in, it works as expected. If the temp is 68 and I set it for 69, I see about 30% power. If I up it to 90, it goes to 100% power.
If I try to do target changes via a script and a global, the target value changes in the box as expected each time but the output remains at 0. It's only until I stop the script that the output updates in the element box.
Have not water tested yet. Was trying to get everything set up before taking my control box out to the garage. If it still works as a PWM element, not the end of the world if I can't see the output, just figured I was missing something in the script causing it to behave that way.
I am not sure exactly what @cdug619 is trying to do exactly.I’d set your target temp before the loop instead of in it. As written, you are continually resetting the target temp during each loop.
Could it be the URL you have the service pointed to has an error in it. Not sure if this is related however back on post 7880 the user was able to correct the problem by changing the URL thru the command prompt. Just a thoughtTrying to get back into node red. I am having an issue with the service in BruControl.
When I go to Setting . Data Exchange the service is stopped. I have tried rebooting and clicking the buttons on the dialog, but the service does not start.
I left the port as 8000
I click the Reserve URL Button (It sorta blinks then appears to have the focus again.
I cannot get the Release URL or Service Enabled Switch to work.
I checked and I am sign in as an Administrator to my computer
Solved!!!Trying to get back into node red. I am having an issue with the service in BruControl.
When I go to Setting . Data Exchange the service is stopped. I have tried rebooting and clicking the buttons on the dialog, but the service does not start.
I left the port as 8000
I click the Reserve URL Button (It sorta blinks then appears to have the focus again.
I cannot get the Release URL or Service Enabled Switch to work.
I checked and I am sign in as an Administrator to my computer
see BruControl: Brewery control & automation softwareI would like to monitor the uptime of my connected interfaces thru Brucontrol. Two of my controllers are on 24/7 (both have battery backup) and I would like to monitor if any glitches occurred over a select time period of time. Is there a simple way of doing this, I do have additional MEGAS if 1 could be used as a device to monitor the other 2.
Thanks @oakbarn That looks like what Im after, I can customise the Element as required.You could use this type of script to make what you want.
I would create global string to save the disconnect message . I think you need two separate scripts, one for each interface and put the disconnect message in that global string. It would be nice if there was a way to insert a line feed into a global string. I would put a wait at the end of my loop to get when the element is reconnected.Thanks @oakbarn That looks like what Im after, I can customise the Element as required.
It works fine in BruControl but when exporting to a global string element value it produces a flat file with the \n in one of the cells. The flat file is a comma separated type with a comma delimiter but no line feed. I have tried various ALT + 13 and ALT + 13 and tried to embed those, but they are not giving the desired line feed.Put a \n in your string for a new line.
Thanks, but that's the weird part. There is nothing there under configuration. Its like I am logging in as a different user, but the is only one account. I use this computer only for BruControl. Microsoft Defender is reporting that it found malware Backdoor:MSIL/Bladabindi!atm and has quarantined it, so I have rebooted again and am doing a full scan now.Try this.
1. Delete the settings file under
Documents/brucontrol folder
2. Reboot your computer
3 Start BruControl
4 . Go to Settings tab
5.Goto Configuration
6. Select your configuration
Enter your email address to join: