View full sizeThe remnants of Tropical Storm Andrea will soak New Jersey overnight, adding to rainfall totals already topping 4 inches in some locations. Forecasters expect some sunshine by Sunday.National Weather Service

TRENTON — The remnants of Tropical Storm Andrea will pull away today after soaking New Jersey Friday with torrential rain and wind that knocked out power and flooded streets, giving way to scattered showers and unsettled conditions throughout the weekend and into early next week.

But forecasters said the sun may make a cameo appearance by Sunday afternoon.

“We’re still looking at some effects from the system; however, the coverage of rainfall (today) will be less,” said Mitchell Gaines, a meteorologist for the National Weather Service in Mount Holly. “Sunday, there will be a pretty good chance of seeing some sunshine in most areas.”

The storm blanketed the state in a dismal gray Friday and dropped several inches of rain in a matter of hours. As of 11:30 p.m., the weather service and the office of the state climatologist reported more than 4.37 inches of rain had fallen in Sea Girt, 4.25 inches had fallen in Cranford, and 4.12 inches had fallen in Point Pleasant, 3.7 in Hope, 3.61 in Seaside Heights and 3.81 inches at Newark Liberty International Airport.

Maximum sustained winds were 45 mph, though the worst was over the ocean, forecasters said.

The rain made for a messy evening commute, causing delays and some road closures, but transportation officials said the problems were limited. NJ Transit allowed passengers to use bus and train tickets interchangeably, and parking garages in Hoboken were discounted.

At Newark Airport, travelers heading out for the weekend were met with delays of an hour or more, particularly those destined for cities in the path of the storm.

State emergency officials, now well-versed in storm response after Hurricane Sandy, kept a close eye on Andrea from the State Police intelligence center in Ewing Township.

“We face changing conditions over the next couple of days,” Superintendent Col. Rick Fuentes said in a statement. “Those who live in river communities should be aware of the potential for flooding and follow instructions if given by local emergency officials.”

Despite the storm being downgraded at 5 p.m. to a post-tropical cyclone, flood warnings were in effect for Essex, Union, Passaic, Bergen, Hunterdon, Mercer, Morris, Somerset and Middlesex counties until early Saturday morning, and forecasters said the risk would continue to rise into Saturday.

“At least so far, flooding reports haven’t been too severe, but we’re watching it closely as we get more rainfall bands moving through,” Gaines said.

There were widespread road closures reported from Hudson County to Middlesex counties because of flooding. Slow traffic was reported on roads that regularly flood in Linden, Rahway and some exits onto Interstate 278 and 280. In Hillside, the Community FoodBank of New Jersey headquarters was evacuated because of rising floodwaters.

The president of the FoodBank, Kathleen DiChiara, said a broken drainage pipe leading into Weequahic Lake was causing runoff to back up on Evans Terminal Road.

“There were five or six groups expecting food to be delivered tomorrow, but we’re not going to be able to because we can’t get our trucks into the loading dock,” she said.

Officials in Jersey City set up barricades on flood-prone streets. In Rahway and parts of Clark, about 7,300 homes and businesses lost power for about two hours when a substation failed.