You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But much of that custom filtering logic could easily be done by making .find() and .findOne()'s options argument more powerful, by expanding what src/lib/utils/filter-service.ts does.
IOW:
bonjour.findOne({
type: 'http',
host: /SMAd+/,
name: /^Website for SMA-Inverter .*/
addressFamily: 'IPv4'
}, function () {
// no filtering logic needed anymore!
});
First off: THANK YOU! This works great! 🚀 I'm using this in https://github.com/wimleers/homebridge-sma-home-manager.
This is what I have today:
finds the result I need:
But much of that custom filtering logic could easily be done by making
.find()
and.findOne()
'soptions
argument more powerful, by expanding whatsrc/lib/utils/filter-service.ts
does.IOW:
That'd result in my getting
… with less logic needed on my end 😊
The text was updated successfully, but these errors were encountered: