CCR1009 Simple Fan Control Script

Hey Guys,
i just got the CCR1009 and was a bit annoyed from the loud fans. Cause I do not want to change the fan’s i wrote a little Script which will change the active Fan if a certain CPU-Temperature is reached and change back if the CPU-Temperature drops below a certain Value. If you unplug one of the Fan’s it can be used to turn the remaining Fan on and off from the Script, if Fan-Mode is set to Manual. Maybe you should not do this cause it could shorten the Lifetime of you Device(And if the not-unplugged Fan fails it won’t be good either). Anyway, i want to share the Script:

:if ([/system health get cpu-temperature]> 70) do={
[/system health set use-fan="main"] 
}
if ([/system health get cpu-temperature]< 60) do={
[/system health set use-fan="auxiliary"] 
}

You may want to use the Scheduler to run it at an fixed Interval.
By using this you can’t make me responsible for any unexpected behavior with your devices, use at your own Risk.

anyone can convert this script to ros7