welcome to BMS Link
Would you like to react to this message? Create an account in a few clicks or log in to continue.

new function, timeOffset

Go down

new function, timeOffset Empty new function, timeOffset

Post by skiv71 Sun Nov 23, 2014 7:56 pm

Hi Guy's,

Update 1.047 introduce's a new function which you can use with the meta data points.

It allows you to obtain an offsetted time slot, derived from the time you supply it and the offset.

The function requires 2 parameters, i.e. timeOffset(a,b) where timeOffset 'is' case sensitive and a is your 'time' and b is the 'offset' in mins

For example....

I would like the lights to come on 45 mins before sunset.

You can obtain this time value by...

newtime = timeOffset(sunset,45);

where 'newtime' is your internal 'var', which you can use within your script.

Of couse, you can call this var whatever you like.

This feature was requested by one our keen users, moreno5 Smile

Thanks

Neil
skiv71
skiv71
Admin

Posts : 161
Join date : 2014-04-25
Age : 52
Location : United Kingdom

http://bmslink.co.uk:8180 [guest:guest]

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum