GivEnergy and GivTCP setting charge percentage

I have installed GivTCP add-on and can see all the data on my dashboard.

What I want to do is set the values for setChargeSlot1 to take advantage on economy 7 rate at night.

Does anyone have an example of a script that can set the values of this?

Are you still having problems with this?