ioBroker.js-controller
ioBroker.js-controller copied to clipboard
Create frequently used variables
isDay isNight time => (without seconds) hour => minutes => date => dow dowText ?? Something else.
Interesting idea ... but under which "instance"? jscontroller do not have any. maybe "system.0"?
What is "dow"?
What about time with seconds? Users could use that to trigger scripts and actions. I think that would provide a nice alternative to CRON.
@Apollon77 I guess dow means dayOfWeek and I prefer the longer, explicit word for it.
I'll think about some more variables we could use.
seconds will never be accurate and you would have one state update per second ... i would also go with minute granularity. then you still can trigger on "minute change"
Sun position based on geo coordinates
@GermanBluefox YOu started that now in javascript adapter, or ?! So still relevant here for controller?
I think, we should shift it to Javascript. But scenes could win from implementation in js-controller.
Haven’t read about scenes in this issue. So what do you exactly mean by scenes?
@GermanBluefox ?
I mean adapter 'scenes'. Now only javascript has similar variables, but for scenes it could be usefull to to use isDay, isNight.