An automated all-sky atmospheric monitoring camera for a next-generation ultrahigh-energy cosmic-ray observatory