Code Monkey home page Code Monkey logo

Comments (19)

Arksine avatar Arksine commented on July 20, 2024 2

Yes, this is something I can look into adding a plugin for. Email notifications would probably be easiest, but I may look into mqtt as well as it seems straight forward to add a "client" and I suspect it would require less user configuration in Moonraker.

from moonraker.

ybjlus avatar ybjlus commented on July 20, 2024 2

Yes, this is something I can look into adding a plugin for. Email notifications would probably be easiest, but I may look into mqtt as well as it seems straight forward to add a "client" and I suspect it would require less user configuration in Moonraker.

MQTT would be great! Also for the "power shut down" this way you could use any smart plug or smart device.

I think if you would broadcast the state of a bunch of variables through MQTT, would make a world of difference. With this you don't have to support different brands/devices/plugins/etc.
I use home assistant and with this mqtt info, I could make so many things work: notifications (email, phone, brower, tv), auto power off, monitoring and so on.
Have a look at this: https://github.com/OctoPrint/OctoPrint-MQTT

from moonraker.

Arksine avatar Arksine commented on July 20, 2024 1

There is a contributor doing some work on a generic notification component. I believe that initially he plans on supporting configurable HTTP notifications. When that work is complete I plan to look into adding MQTT support.

from moonraker.

jordanruthe avatar jordanruthe commented on July 20, 2024 1

I'm still working on it, but haven't had much time lately. The benefit of a notification module will be granularity in notifications as well as other methods (email, discord, whatever else).

from moonraker.

Arksine avatar Arksine commented on July 20, 2024 1

#377 has been merged, which should add support for numerous notification backends. Thanks @pataar!

from moonraker.

zervin avatar zervin commented on July 20, 2024

It would end up being on the user side, sorting out what to do with the mqtt messages, but it's a more open standard. I would love to recommend something like pushover/pushbullet/telegram/slack..but I think those tend to add more complexity than warranted. We need you focused on moonraker code, not addressing constant issues from 3rd party api patches!

from moonraker.

zellneralex avatar zellneralex commented on July 20, 2024

Here would be a user script that add basic telegram support for moonraker
https://github.com/Raabi91/moonraker-telegram

from moonraker.

zervin avatar zervin commented on July 20, 2024

Here would be a user script that add basic telegram support for moonraker
https://github.com/Raabi91/moonraker-telegram
I will have to give this a try...

from moonraker.

jrdnlc avatar jrdnlc commented on July 20, 2024

Discord notifications would probably be easiest to implement

from moonraker.

halr9000 avatar halr9000 commented on July 20, 2024

Coming from stock marlin and octoprint here, about to jump into klipper land. I am going to miss my telegram and mqtt integrations, so I like the discussion above. I wouldn't use email, personally.

To @zervin point about plugins and clients -- yeah, definitely make it something extensible so others can build on top. I think best bang for the buck would be to do pub/sub to mqtt, and then this would give us home automation capabilities. I even see an mqtt client for telegram, so it might be trivial for others to do that as well.

Any active work going on in this area?

from moonraker.

eecue avatar eecue commented on July 20, 2024

Here's another vote for this! I'm happy to lend a hand. Where is the notification branch?

from moonraker.

pedrolamas avatar pedrolamas commented on July 20, 2024

@eecue I believe #184 might be it!

from moonraker.

eecue avatar eecue commented on July 20, 2024

Awesome! are there other notifications? I just see the MQTT but a generic web hook (or one that's slack flavored) would be awesome. For now I've written this and plan to add web sockets to it: https://github.com/eecue/klipper-slackbot

from moonraker.

pedrolamas avatar pedrolamas commented on July 20, 2024

That looks quite cool! My personal interest is to use the MQTT status messages to show the printer status on Home Assistant (thus replacing the need to use pulls via REST API as I currently do)

from moonraker.

eecue avatar eecue commented on July 20, 2024

from moonraker.

pedrolamas avatar pedrolamas commented on July 20, 2024

Actually, that branch was taking a different approach and I believe it is now stale (up to the maintainer if he wishes to refactor it as I do see value in that).

Having said that, I took a stab yesterday in adding print_status changes pushed to MQTT, and it seems to be working ok: #202

from moonraker.

pedrolamas avatar pedrolamas commented on July 20, 2024

Thanks @jordanruthe, looking forward for that then! 🙂

from moonraker.

soostdijck avatar soostdijck commented on July 20, 2024

I came here looking for notifications (to pushover), is there any news about this? It's been a while since any updates

from moonraker.

pataar avatar pataar commented on July 20, 2024

I started working on #377. This component utilizes the apprise library, which includes a ton of notification services.

So eventually you can add this to moonraker.conf:

[notifier my_personal_discord]
events: started,completed
url: https://discord.com/api/webhooks/{id}/{secret}}
body: Printer update: '{event_name}'

[notifier print_start]
url: tgram://{bottoken}/{ChatID}
events: started
body: Your printer started printing '{event_args[1].filename}'

from moonraker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.