#HalachaYomi OC 338:3 It is permitted to hang and prepare a clock before Shabat that will ring during Shabat.