i wonder how consistent it is to do it over a pan with hands...
I personally have a roasting attachment in my air-fryer, which is a rotating drum. And the air fryer has temperature setting, which can be used to correctly tune to roast your beans!
But i just buy mine from a good local roaster...their skill is worth paying for since i find my own roasting to be uneven and inconsistent.