Need Script to auto power ON/OFF poe ports of powerbox based on ntp clock.

Hi experts,
i am new to scripts need some help. we have some remote WISP sites installed, powering through solar system,power-box is used to power-up the devices. we want to minimize the power usage to improve backup of system. so we simply decided to power off the sector from 12:AM to 7:AM
to reduce night power usage.

so we want to design a script and schedule, which check clock time in power box (clock is synced with ntp server) and power off and power on poe ports on desired schedule.

we are try to search on forum and find this http://forum.mikrotik.com/t/750up-poe-on-off-script/80932/1

any help is appreciated.
SOl.jpg

You don’t need to write anything really… Just use the scheduler… Schedule one script that powers of and another scheduled to power on…

Sent from my XT1575 using Tapatalk

/system scheduler add name=“Disable POE” interval=1d start-time=00:00:00 start-date=jun
/5/2016 on-event=“/interface disable 0”

/system scheduler add name=“Enable POE” interval=1d start-time=00:07:00 start-date=jun
/5/2016 on-event=“/interface disable 0”

just use this and be sure that the ntp is working well