ioBroker / ioBroker.docs

Documentation for ioBroker
https://www.iobroker.net/#de/documentation
MIT License
60 stars 167 forks source link

add roles time.difference, time.timeout and time.interval #420

Closed mcm1957 closed 1 year ago

mcm1957 commented 1 year ago

Currently no roles exist to specify a timeout values for i.e. for network operations. And the same applies for states controlling an intervall for recurrent operations. time.difference would be useful to specify the difference of 2 times, ie. the duration of last operation or the deviation from a planned timestamp

I suggest to specify the values as ms as ms is the technical unit für javascript timers

@Apollon77 @GermanBluefox @Garfonso

Solves https://github.com/ioBroker/ioBroker.type-detector/issues/36

Garfonso commented 1 year ago

I would suggest "time.span" instead of "time.difference". "Time span" (in German "Zeitspanne") seems more general and technically correct for what you mean.

In any case, I, too, think that something like that is currently missing and would like to add those roles. It could be discussed, if all three of them are necessary. But I like them, because timeout and interval are two things that are used quite often in ioBroker from what I see.

mcm1957 commented 1 year ago

Ok sound better Ill change