Emergency and backup power sources preparing for blackouts and brownouts