In addition to illumination, I believe that a flag must be taken down in bad weather as well, although not 100% sure.
As far as I know, there are very few rules about flags. It's all custom based on edicate. This includes either taking it down at dusk or illuminating it, taking the flag down during inclement weather, proper disposal when faded, tattered, or torn, and also displaying the flag.