Electrical – Connecting string of cafe lights to power source sans outlet

electricallighting

I'd like to string up cafe lights on my back porch, but there's no outlet or power source for them to plug into. The cafe lights wrap around the porch roof perimeter and end about 2 feet away from the porch light (see photo).

enter image description here

My question: is there a way to cut the male end of this string of cafe lights and, with the help of additional wiring and end caps, somehow splice/connect it to the porch light so it can be operated by the light switch that turns on/off the porch light? Or is there a better and safer way altogether to connect the cafe lights to a power source? For reference, here's a closeup of the porch light:

enter image description here

Best Answer

Since that light fixture appears to be wired with temporary use extension cord anyway, why go through the trouble of wiring up a new weathertite box with GFI receptacle and approved weatherproof "in-use" cover (method probably required for code compliant install)?

Keep it simple. The items that I am suggesting are probably listed for indoor use only. I have a similar setup (in a similarly protected location) and have had no problems for years: socket adapter + lamp extension cord.

enter image description here

enter image description here