ioBroker / ioBroker.history

manages state history
MIT License
29 stars 22 forks source link

Javascript Options #338

Open RalfStehle opened 2 months ago

RalfStehle commented 2 months ago

The options for javascript sendTo('history.0', 'enableHistory', { are not well described. I even think I found a typo (debounce instead of debounceTime)

I found on the internet two more options (Bold):

sendTo('history.0', 'enableHistory', { id: 'alias.0.Zaehler', options: { blockTime: 1000, debounceTime: 1000, changesOnly: true, retention: 31536000, maxLength: 5, changesRelogInterval: 3600000, aliasId: '' } }, function (result) { if (result.error) { console.log(result.error); } if (result.success) { console.log('successfull enabled'); } });