Comments (3)
mqttwarn's documentation would match Python's filter
function 1:
filter(function, iterable)
: Construct an iterator from those elements of iterable for which function istrue
.
However, mqttwarn's implementation is apparently doing it the other way round, contrary to its documentation. Is it a bug? How would we approach fixing this?
Footnotes
from mqttwarn.
I also stumbled about this. I would suggest to keep the implementation as it is (to not break implementation done by all the users), but update the documentation to be more precise on how to create the filter.
E.g.:
A function called from the filter property in a topic section needs to return True to stop the outbound notification
from mqttwarn.
Documentation fixed with 288392f. Thanks.
from mqttwarn.
Related Issues (20)
- Remove `gss` service plugin in favor of `gss2`? HOT 3
- mqttwarn 0.34.0 sdist size change HOT 1
- mqttwarn nine years ago HOT 6
- Absorb mqttshark? HOT 5
- Documentation on Image-based installation is wrong HOT 3
- [Nextcloud] Verify thoroughness of implementation over Apprise
- [ntfy] Bug with notification messages longer than 76 characters HOT 5
- Improve ntfy documentation on authorization and/or add authorization header HOT 4
- Docker issue with pushbullet (mqttwarn-full) HOT 8
- [ntfy] Error if message contains newline character `\n` HOT 14
- [pushover] unable to decode base64 encoded image
- Nightly to latest docker build - what is the trigger for this? HOT 5
- Object of type bytes is not JSON serializable HOT 5
- Use `dynamic-imports` for loading Python code at runtime
- Pull effective recipient from message payload HOT 3
- Messages directed only to the first target when a format function is defined HOT 2
- TLS issues with mosquitto-2.0.18 HOT 6
- mqttwarn does not like py39-paho-mqtt-2.0.0 HOT 11
- ntfy title results in ''=?utf-8?q?' prefix? HOT 1
- Republish part of json to influxdb or mqtt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqttwarn.