-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Republish part of json to influxdb or mqtt #696
Comments
Ok, it seems i have found a solution that suits my needs. samplefuncs.py:
and into mqttwarn.ini i added:
It all seems to work ... maybe there are some simplier solutions but this seems to finally serve the purpose for me. |
Hi Martin, excellent. Thanks for sharing your procedures. So, effectively you are doing some JSON attribute filtering and MQTT topic rewriting in your custom code, right? I wonder if mqttwarn would offer a corresponding plugin out of the box, at least for the re-publishing part? In any case, we are happy that you managed to find a solution using mqttwarn with custom code. With kind regards, |
Good day, What i wanted was simple - incoming json republished to mqtt as separate topics under one base. But as my solution seemed quite hacky i asked maybe it can be solved with existing code ... But if not i will continue with my solution as it works :) Regards, |
Good day!
First of all - thank you for great software!
For last few days i have been struggling with idea to get ecowitt weather station data to influxdb.
I'm seem to be missing logic or understanding ...
When one value comes in and needs to go to influx it seems doable.
But once i have one json topic i have no idea how to do it :(
Received json is quite simple:
Now i would like to get winddir and windspeed and insert them directly to influx ... but have no idea how to do it ...
With python func i have found it is possible to extract and formutale the message again ... but i have not found any example how to solve "one topic, multiple values to different places" - is it even possible?
Any hints or directions are welcome.
The text was updated successfully, but these errors were encountered: