Annnnnnnnnnnd here's whats being added
BlueZX3 was kind enough to share a snippet of his code in RRExtended which allows labels to be monitored and a command executed based on limits placed on the label. This concept has now been added into RRFusion.
A new file as been created called RRFusion_threshold.ini. Inside this file you can set a threshold for each individual analog port. Upon the port exceeding its threshold a user defined label is displayed and a user defined command is run. Through this .ini file you can set the interval at which the ports are checked and set a "snooze" time which will prevent an exceeded threshold from running for a specified amount of time. Here's a sample .ini file
as you can see in the image above... port 5's Raw value is greater than 0... thus the label specified "alert" label is displayed. Also the command RRFUSION_ALERT5 is run. This command can be defined in exectbl.ini and can perform tasks like turning on a digital output, play a song.. whatever command u want it to run.Code:/,Threshold_Check_Interval = <TIME IN SECONDS> /,Threshold_Snooze = <TIME IN SECONDS> /,Analog# = <TYPE>;<LIMIT>;<OPERATOR>;<ALERT> Threshold_Check_Interval = 2 Threshold_Snooze = 5 Analog0 = Raw;0;>;Port 0 Over Limit Analog1 = Raw;0;>;Port 1 Over Limit Analog2 = Raw;0;>;Port 2 Over Limit Analog3 = Raw;0;>;Port 3 Over Limit Analog4 = Raw;0;>;Port 4 Over Limit Analog5 = Raw;0;>;Port 5 Over Limit Analog6 = Raw;0;>;Port 6 Over Limit Analog7 = Raw;0;>;Port 7 Over Limit Analog8 = Raw;0;>;Port 8 Over Limit Analog9 = Raw;0;>;Port 9 Over Limit Analog10 = Raw;0;>;Port 10 Over Limit Analog11 = Raw;0;>;Port 11 Over Limit Analog12 = Raw;0;>;Port 12 Over Limit
I'm still working on fleshing out the feature but most of its core elements are working (thanks to blue). This is my primary focus for the remainder of the week so hopefully i'll have an update by tomorrow afternoon. Stay tuned