Need code for Tv auto off at night and on with pir(paid job)

Hey

I was in to Arduino 4-5 years ago but cant remember it no more.

I need a code for a tv. I want the tv on from 5am to 11pm and after 11pm the pir can active the tv.
The signal for the tv is a rely, maybe 1 sec. Its the same signal for on and off.

I have a Uno and this:

I2C RTC DS1307 AT24C32 Real Time Clock Module for Arduino 51 AVR ARM

Pyroelectric IR Infrared PIR Motion Sensor Detector Module HC-SR501 Arduino

and 12V for it all.

I will pay a good feed over paypal for a good code that works.

Hope you can help.

Thanks Dennis

Hi Dennis,

See my PM for questions.

Pat