Automation for swing gates