The first thing you should do is go to the settings of the plugin (Plugin manager -> TerraxlightingSystem -> doubleclick).
There is a setting there called 'Save DaynightHours'. This setting will save the current daynight hour in the specified game-variable.
So for this example i will set it to 10.
Game-variable 10 will now change each time an hour passes.
Now we can write an eventscript that turns lights on and off depending on that variable (I've called the variable 'HourofDay')
Code:
◆If:HourofDay > 19
◆If:Self Switch A is ON
◆Plugin Command:Light on 1
◆Control Self Switch:A = OFF
◆
:End
◆
:Else
◆If:HourofDay < 6
◆If:Self Switch A is ON
◆Plugin Command:Light on 1
◆Control Self Switch:A = OFF
◆
:End
◆
:Else
◆If:Self Switch A is OFF
◆Plugin Command:Light off 1
◆Control Self Switch:A = ON
◆
:End
◆
:End
◆
:End