change channel is CCQ under 50%

Hello,


have anybody an script for me that change the 5Ghz Channel, when the CCQ under ~50%?


Thx

dingsingo