Now whats this??Do i need to add something to ke5frf's latest diagram?
He is advising something that is a SAFETY FEATURE, a fuseable link. Somewhere between the line wire from the cord and the line input on the relay, it would be a GOOD IDEA to add a FUSE for safety. If a short circuit occurs, this will OPEN the circuit like a switch to prevent electric shock. This is not critical to the function of your project, but will add a dimension of safety to it.
VERY GOOD ADVICE. I apologize for not adding it to the drawing.
Oh and yes, the switch on the DC power supply is interchangeable with any on/off method including a microcontroller command.