-
Notifications
You must be signed in to change notification settings - Fork 17
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
Send events over MQTT too #75
Comments
How would that work? Where would the |
The mqttwarn server would run... wherever you want it to. I would assume that someone who would run such a setup would already have a server where mqttwarn is already available. I would avoid running the tweeter in the same container as planefence, I tend to keep each container as small as possible. For people who want to have the same functionality as now without changing too much, we could create a compose file which starts planefence, mosquitto and mqttwarn. I could set up a documentation how to create a tweeting agent, there are examples in the mqttwarn docu itself. |
Right now, tweeting is initiated and timed during the Planefence run, as
there is some timing involved to ensure that enough information is
available to tweet. In reality, it's extremely lightweight and uses Twurl
(basically a Ruby based Curl wrapper) to send the tweets. I have no plans
to discontinue or separate this tweeting service, as I think most people
won't want to set up MQTT service just to send a tweet.
Alternatively, I have also been looking into adding Telegram and other
notification services, however, for those, maybe using a MQTT service with
Telegram notification plugin would be better.
As for MQTT, ideally, within Planefence, I would create the JSON for a
notification (very easy) and then use CURL or something similar to push the
notification. As such, if you can point me at the documentation
that describes how to push JSON based notification to MQTTWarn, that would
save me a bunch of research time.
Note that the implementation for this will take a bit of time -- there are
some high priority projects I need to finish first before I can start
looking into setting up a MQTT test environment.
…On Fri, May 14, 2021 at 12:49 PM Hakan Tandogan ***@***.***> wrote:
The mqttwarn server would run... wherever you want it to. I would assume
that someone who would run such a setup would already have a server where
mqttwarn is already available.
I would avoid running the tweeter in the same container as planefence, I
tend to keep each container as small as possible. For people who want to
have the same functionality as now without changing too much, we could
create a compose file which starts planefence, mosquitto and mqttwarn.
I could set up a documentation how to create a tweeting agent, there are
examples in the mqttwarn docu itself.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTEHU73IWUJ3X25VNRLMZLTNVIBLANCNFSM444GSANQ>
.
|
You could send your message to mosquitto using the command line client. Steve has many good examples on his guide. For the docker image, the command line tools should be included in the "mosquitto-client" package.
I guess you would want to include the path to the screen shot in the message as well, and whoever wants to consume the message would need to find their own way to get the image file to the mqttwarn container. |
Actually, @mikenye created some shell scripts to push json-formatted data to an MQTT server too: https://github.com/mikenye/docker-adsb-to-mqtt/tree/master/rootfs/usr/local/bin |
Send the event to be tweeted about as a json-formatted message to a MQTT server, a client of which in turn can decide whether to tweet about it or notify the home automation or to water plants :)
This could be in addition to the tweet setup, or the tweeting part could be extracted into its own container.
If a running total of the current day / week / whatever could be included in the message, this could tie in well with #21
The text was updated successfully, but these errors were encountered: