BC Script help

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

aeviaanah

Well-Known Member
Joined
Jul 1, 2012
Messages
1,686
Reaction score
217
I'm looking to write a script that reports temperature change in a set amt of time. How would I record a value and use it to continually work towards averaging out Deg F/Min or Deg F/Hr?
 
Couple things here:

If you want this to persist a script stop/start, use a global, otherwise use a script variable.

Create a global/variable to save your "snapshot in time", then create a global to hold your change value. Every time interval, compare the real time value to the snapshot value, and write this to the change value global.. Once you have the change per time unit, you can extrapolate that out to other time units. Once all the math is done, update your snapshot with the real time value then loop the script and wait for the next update.
 
Couple things here:

If you want this to persist a script stop/start, use a global, otherwise use a script variable.

Create a global/variable to save your "snapshot in time", then create a global to hold your change value. Every time interval, compare the real time value to the snapshot value, and write this to the change value global.. Once you have the change per time unit, you can extrapolate that out to other time units. Once all the math is done, update your snapshot with the real time value then loop the script and wait for the next update.
Your fermentation script essentially does this right? If so I'll use that as a reference and see if I can come up with something...
 
Back
Top