expression, adverb
fortunately; luckily; by good chance
Used when a situation turns out well or conveniently, often with a nuance of 'just right' or 'at a good time'. The phrase comes from いい塩梅 (good condition/timing) + に.
いい塩梅にバスがすぐ来た。
Fortunately, the bus came right away.
いい塩梅に雨がやんで、散歩に出かけられた。
Luckily the rain stopped, and we could go out for a walk.
From いい (good) + 塩梅 (condition, seasoning, timing) + に (adverbial particle). 塩梅 is an ateji spelling for あんばい, which originally referred to seasoning and later extended to mean 'condition' or 'state of things'.