look up the bosminer api. if the exposed api is locked down as read only then make the calls for wattage change same way that the dashboard permits via screen scrapes or ssh into miner and have a cron job to set wattage and restart.
Discussion
this from braiins is better for crontab
I'll check it all put. Thanks!